def test_invalid_pdb(self): """Invalid PDB files should raise a LoadingError. """ Path('blank.pdb').touch() with self.assertRaises(LoadingError): test_molecule = Molecule() test_molecule._set_molecule_from_pdb("blank.pdb") remove('blank.pdb')
def test_missing_pdb(self): """Missing PDB files should raise a LoadingError. """ with self.assertRaises(LoadingError): test_molecule = Molecule() test_molecule._set_molecule_from_pdb("missing.pdb")