Skip to content

Commit

Permalink
fix reporting for parsePfamPDBs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 5, 2023
1 parent 12b311f commit 239ee04
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions prody/tests/database/test_pfam.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ def testPfamIdDefault(self):
b = parsePfamPDBs(self.queries[0])

self.assertIsInstance(b, list,
'fetchPfamMSA failed to return a list instance')
'parsePfamPDBs failed to return a list instance')

self.assertIsInstance(b[0], Selection,
'fetchPfamMSA failed to return a list of Selection instances')
'parsePfamPDBs failed to return a list of Selection instances')

self.assertEqual(len(b), 5,
'fetchPfamMSA failed to return a list of length 5')
'parsePfamPDBs failed to return a list of length 5')


def testUniprotDefault(self):
Expand All @@ -166,13 +166,13 @@ def testUniprotDefault(self):
b = parsePfamPDBs(self.queries[1])

self.assertIsInstance(b, list,
'fetchPfamMSA failed to return a list instance')
'parsePfamPDBs failed to return a list instance')

self.assertIsInstance(b[0], Selection,
'fetchPfamMSA failed to return a list of Selection instances')
'parsePfamPDBs failed to return a list of Selection instances')

self.assertEqual(len(b), 5,
'fetchPfamMSA failed to return a list of length 5')
'parsePfamPDBs failed to return a list of length 5')


def testMultiDomainDefault(self):
Expand All @@ -183,16 +183,16 @@ def testMultiDomainDefault(self):
b = parsePfamPDBs(self.queries[2])

self.assertIsInstance(b, list,
'fetchPfamMSA failed to return a list instance')
'parsePfamPDBs failed to return a list instance')

self.assertIsInstance(b[0], Selection,
'fetchPfamMSA failed to return a list of Selection instances')
'parsePfamPDBs failed to return a list of Selection instances')

self.assertEqual(len(b), 7,
'fetchPfamMSA failed to return a list of length 7')
'parsePfamPDBs failed to return a list of length 7')

self.assertEqual(b[0].getResnums()[0], 262,
'fetchPfamMSA failed to return a first Selection with first resnum 262')
'parsePfamPDBs failed to return a first Selection with first resnum 262')

def testMultiDomainStart1(self):
"""Test the outcome of parsing PDBs using a V-type proton ATPase subunit S1,
Expand All @@ -202,16 +202,16 @@ def testMultiDomainStart1(self):
b = parsePfamPDBs(self.queries[2], start=1)

self.assertIsInstance(b, list,
'fetchPfamMSA failed to return a list instance')
'parsePfamPDBs failed to return a list instance')

self.assertIsInstance(b[0], Selection,
'fetchPfamMSA failed to return a list of Selection instances')
'parsePfamPDBs failed to return a list of Selection instances')

self.assertEqual(len(b), 7,
'fetchPfamMSA failed to return a list of length 7')
'parsePfamPDBs failed to return a list of length 7')

self.assertEqual(b[0].getResnums()[0], 262,
'fetchPfamMSA failed to return a first Selection with first resnum 262')
'parsePfamPDBs failed to return a first Selection with first resnum 262')

def testMultiDomainStart2(self):
"""Test the outcome of parsing PDBs using a V-type proton ATPase subunit S1,
Expand All @@ -221,13 +221,13 @@ def testMultiDomainStart2(self):
b = parsePfamPDBs(self.queries[2], start=418)

self.assertIsInstance(b, list,
'fetchPfamMSA failed to return a list instance')
'parsePfamPDBs failed to return a list instance')

self.assertIsInstance(b[0], Selection,
'fetchPfamMSA failed to return a list of Selection instances')
'parsePfamPDBs failed to return a list of Selection instances')

self.assertEqual(b[0].getResnums()[0], 418,
'fetchPfamMSA failed to return a first Selection with first resnum 418')
'parsePfamPDBs failed to return a first Selection with first resnum 418')

@classmethod
def tearDownClass(self):
Expand Down

0 comments on commit 239ee04

Please sign in to comment.