@@ -0,0 +1,1498 @@
+%22%22%22%0ATests for the BSE IO functions%0A%22%22%22%0A%0A# Most functionality is covered under other tests.%0A# This tests the remainder%0A%0Aimport bse%0Aimport os%0Aimport pytest%0A%0A_data_dir = bse.default_data_dir%0A%0A@pytest.mark.parametrize('file_path', %5B%0A                              'CC-PVDZ.0.table.json',%0A                              'CRENBL.0.table.json',%0A                              'dunning/CC-PVDZ.0.element.json',%0A                              'crenb/CRENBL.0.element.json',%0A                              'dunning/CC-PVDZ_dunning1989a.0.json',%0A                              'crenb/CRENBL_ross1994a.0.json',%0A                              'crenb/CRENBL-ECP_ross1994a.0.json'%0A                         %5D)%0Adef test_read_write_basis(file_path):%0A    # needed to be tested to make sure something isn't left%0A    # out of the sort lists, etc%0A    full_path = os.path.join(_data_dir, file_path)%0A    full_path_new = full_path + '.new'%0A    data = bse.io.read_json_basis(full_path)%0A    bse.io.write_json_basis(full_path_new, data)%0A    os.remove(full_path_new)%0A%0A%0A@pytest.mark.parametrize('file_path', %5B%0A                              'REFERENCES.json'%0A                         %5D)%0Adef test_read_write_references(file_path):%0A    # needed to be tested to make sure something isn't left%0A    # out of the sort lists, etc%0A    full_path = os.path.join(_data_dir, file_path)%0A    full_path_new = full_path + '.new'%0A    data = bse.io.read_references(full_path)%0A    bse.io.write_references(full_path_new, data)%0A    os.remove(full_path_new)%0A

Test writing of json files