Пример #1
0
 def test_to_from_dict(self):
     species1 = ["Si5+", "Mg2+"]
     f1 = ContainsSpecieFilter(species1, strict_compare=True, AND=False)
     d = f1.as_dict()
     self.assertIsInstance(ContainsSpecieFilter.from_dict(d),
                           ContainsSpecieFilter)
Пример #2
0
 def test_to_from_dict(self):
     species1 = ["Si5+", "Mg2+"]
     f1 = ContainsSpecieFilter(species1, strict_compare=True, AND=False)
     d = f1.to_dict
     self.assertIsInstance(ContainsSpecieFilter.from_dict(d), ContainsSpecieFilter)
Пример #3
0
 def test_to_from_dict(self):
     species1 = ['Si5+', 'Mg2+']
     f1 = ContainsSpecieFilter(species1, strict_compare=True, AND=False)
     d = f1.as_dict()
     self.assertIsInstance(ContainsSpecieFilter.from_dict(d),
                           ContainsSpecieFilter)
Пример #4
0
 def test_to_from_dict(self):
     species1 = ['Si5+', 'Mg2+']
     f1 = ContainsSpecieFilter(species1, strict_compare=True, AND=False)
     d = f1.to_dict
     self.assertIsInstance(ContainsSpecieFilter.from_dict(d),
                           ContainsSpecieFilter)