示例#1
0
 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")
示例#2
0
 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")
示例#3
0
 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")