Exemple #1
0
 def test_is_empty():
     """Test that ``is_empty`` returns the correct result."""
     molecule = Molecule([], [])
     assert molecule.is_empty() is True
Exemple #2
0
 def test_is_empty():
     """Test that methane is not empty."""
     molecule = Molecule([AtomSpec('C', 4)], [])
     assert molecule.is_empty() is False