Пример #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")