Skip to content

Commit

Permalink
Fixed test case after bug on tool
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoRodrigues committed Nov 29, 2018
1 parent 9d80f4f commit 0974ac1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_pdb_tocif.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_single_model(self):

# Validate results
self.assertEqual(self.retcode, 0)
self.assertEqual(len(self.stdout), 211)
self.assertEqual(len(self.stdout), 212)
self.assertEqual(len(self.stderr), 0)

# Check no of records
Expand All @@ -75,7 +75,7 @@ def test_single_model(self):
self.assertEqual(n_HETATM, 9)
self.assertEqual(n_coord, 185)

def test_valid(self):
def test_multi_model(self):
"""$ pdb_tocif data/ensemble_OK.pdb"""

fpath = os.path.join(data_dir, 'ensemble_OK.pdb')
Expand All @@ -86,7 +86,7 @@ def test_valid(self):

# Validate results
self.assertEqual(self.retcode, 0)
self.assertEqual(len(self.stdout), 30)
self.assertEqual(len(self.stdout), 31)
self.assertEqual(len(self.stderr), 0)

# Check no of records
Expand All @@ -105,7 +105,7 @@ def test_valid(self):
# Check number of fields
atom_lines = [l for l in self.stdout if l.startswith(records)]
n_fields = list(set(map(lambda x: len(x.split()), atom_lines)))
self.assertEqual(n_fields, [20])
self.assertEqual(n_fields, [21])

def test_file_not_found(self):
"""$ pdb_tocif not_existing.pdb"""
Expand Down

0 comments on commit 0974ac1

Please sign in to comment.