コード例 #1
0
ファイル: test_molecule.py プロジェクト: thesketh/oxmol
 def test_is_empty():
     """Test that ``is_empty`` returns the correct result."""
     molecule = Molecule([], [])
     assert molecule.is_empty() is True
コード例 #2
0
ファイル: test_molecule.py プロジェクト: thesketh/oxmol
 def test_is_empty():
     """Test that methane is not empty."""
     molecule = Molecule([AtomSpec('C', 4)], [])
     assert molecule.is_empty() is False