aboutsummaryrefslogtreecommitdiff
path: root/plip/test
diff options
context:
space:
mode:
Diffstat (limited to 'plip/test')
-rw-r--r--plip/test/test_command_line.py6
-rw-r--r--plip/test/test_hydrogen_bonds.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/plip/test/test_command_line.py b/plip/test/test_command_line.py
index 5d8e8e5..d3ab332 100644
--- a/plip/test/test_command_line.py
+++ b/plip/test/test_command_line.py
@@ -46,3 +46,9 @@ class CommandLineTest(unittest.TestCase):
shell=True)
self.assertEqual(len(os.listdir(self.tmp_dir.name)), 2)
self.assertEqual(exitcode, 0)
+
+ def test_stdout(self):
+ """A PDB ID with no valid PDB record is provided."""
+ exitcode = subprocess.call(f'{sys.executable} ../plipcmd.py -t -f ./pdb/1eve.pdb -O', shell=True)
+ self.assertEqual(exitcode, 0)
+
diff --git a/plip/test/test_hydrogen_bonds.py b/plip/test/test_hydrogen_bonds.py
index 9d68532..75cae6c 100644
--- a/plip/test/test_hydrogen_bonds.py
+++ b/plip/test/test_hydrogen_bonds.py
@@ -35,4 +35,4 @@ class HydrogenBondTestCase(unittest.TestCase):
self.assertEqual(len(interactions1.hbonds_ldon), 0)
config.NOHYDRO = False
interactions2 = characterize_complex('./pdb/1x0n_state_1.pdb', 'DTF:A:174')
- self.assertEqual(len(interactions2.hbonds_ldon), 1)
+ self.assertEqual(len(interactions2.hbonds_ldon), 1) \ No newline at end of file