def test_as_dict_and_from_dict(self): file_name = os.path.join(test_dir, 'PARAMETERS') tags = Tags.from_file(file_name) d=tags.as_dict() tags2 = Tags.from_dict(d) self.assertEqual(tags, tags2, "Parameters do not match to and from dict")
def test_as_dict_and_from_dict(self): file_name = os.path.join(test_dir, 'PARAMETERS') tags = Tags.from_file(file_name) d=tags.as_dict() tags2 = Tags.from_dict(d) self.assertEqual(tags, tags2, "Parameters do not match to and from dict")
def test_as_dict_and_from_dict(self): file_name = os.path.join(PymatgenTest.TEST_FILES_DIR, "PARAMETERS") tags = Tags.from_file(file_name) d = tags.as_dict() tags2 = Tags.from_dict(d) self.assertEqual(tags, tags2, "Parameters do not match to and from dict")