@@ -0,0 +1,1727 @@
+import os, sys; sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))%0A%0Afrom pprint import pformat%0A%0Aimport pytest%0A%0Aimport lasio%0Aimport lasio.las_items%0A%0A%0Atest_dir = os.path.dirname(__file__)%0A%0Aegfn = lambda fn: os.path.join(os.path.dirname(__file__), %22examples%22, fn)%0A%0Astegfn = lambda vers, fn: os.path.join(%0A    os.path.dirname(__file__), %22examples%22, vers, fn%0A)%0A%0A%0Adef test_repr():%0A    h = lasio.las_items.HeaderItem(%0A        'MN', unit='m', value=20, descr='test testing')%0A%0A    assert h.__repr__() == pformat(h)%0A%0A%0Adef test_useful_mnemonic_setter_not_allowed():%0A    h = lasio.las_items.HeaderItem(%0A        'MN', unit='m', value=20, descr='test testing')%0A%0A    with pytest.raises(ValueError):%0A        h.useful_mnemonic = %22NEW_NAME%22%0A%0A%0Adef test_mmenomic_names_behavior():%0A    h = lasio.las_items.HeaderItem(%0A        'MN', unit='m', value=20, descr='test testing')%0A%0A    h%5B'mnemonic'%5D = %22ZZZ%22%0A    assert h.useful_mnemonic == %22MN%22%0A%0A    h.mnemonic = %22ZZZ%22%0A    assert h.useful_mnemonic == %22ZZZ%22%0A%0A%0Adef test_getitem():%0A    h = lasio.las_items.HeaderItem(%0A        'MN', unit='m', value=20, descr='test testing')%0A%0A    assert h%5B%22mnemonic%22%5D == %22MN%22%0A    assert h%5B%22original_mnemonic%22%5D == %22MN%22%0A    assert h%5B%22useful_mnemonic%22%5D == %22MN%22%0A    assert h%5B%22unit%22%5D == %22m%22%0A    with pytest.raises(KeyError):%0A        h%5B'notakey'%5D%0A%0A%0Adef test_header_json():%0A    h = lasio.las_items.HeaderItem(%0A        'MN', unit='m', value=20, descr='test testing')%0A%0A    x = %5B%0A        '%22_type%22: %22HeaderItem%22',%0A        '%22mnemonic%22: %22MN%22',%0A        '%22unit%22: %22m%22',%0A        '%22value%22: 20',%0A        '%22descr%22: %22test testing%22',%0A    %5D%0A    expect = %22%7B%22 + %22, %22.join(x) + %22%7D%22%0A%0A    assert h.json == expect%0A    with pytest.raises(Exception):%0A        h.json = '%7B %22_type: %22HeaderItem%22 %7D'%0A

Add HeaderItem tests