def test_normal_oxygen(self): mol = Molecule(atoms=[Atom(element='O', lone_pairs=2)]) unexpected = _has_unexpected_lone_pairs(mol) self.assertFalse(unexpected)
def test_oxygen_3_lone_pairs(self): mol = Molecule(atoms=[Atom(element='O', lone_pairs=3)]) unexpected = _has_unexpected_lone_pairs(mol) self.assertTrue(unexpected)
def test_singlet_carbon(self): mol = Molecule(atoms=[Atom(element='C', lone_pairs=1)]) unexpected = _has_unexpected_lone_pairs(mol) self.assertTrue(unexpected)