add tests for checking for KeyError on missing mnemonic
SectionItems is fine
LASFile is not.
@@ -128,3 +128,7 @@ def test_mnemonic_case_comparison_lower():
las = lasio.read(egfn('mnemonic_case.las'), mnemonic_case='lower')
assert 'DEPT' in las.curves
+def test_missing_mnemonic():
+ las = lasio.read(egfn('sample.las'))
+ with pytest.raises(KeyError):
+ las['blahblahblah']
\ No newline at end of file
