Exemplo n.º 1
0
 def test_get_structure_from_mp(self):
     with warnings.catch_warnings():
         warnings.simplefilter("ignore")
         self.assertEqual(get_structure_from_mp("Li2O").formula, "Li2 O1")
         self.assertRaises(ValueError, get_structure_from_mp, "LiNaKCs")
Exemplo n.º 2
0
 def test_get_structure_from_mp(self):
     with warnings.catch_warnings():
         warnings.simplefilter("ignore")
         self.assertEqual(get_structure_from_mp("Li2O").formula, "Li2 O1")
         self.assertRaises(ValueError, get_structure_from_mp, "LiNaKCs")