def test_contains_element_type(self): formula = "EuTiO3" cmp = Composition(formula) self.assertTrue(cmp.contains_element_type("lanthanoid")) self.assertFalse(cmp.contains_element_type("noble_gas")) self.assertTrue(cmp.contains_element_type("f-block")) self.assertFalse(cmp.contains_element_type("s-block"))