/usr/lib/python3/dist-packages/csb/test/cases/bio/io/procheck/__init__.py is in python3-csb 1.2.3+dfsg-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import csb.test as test
from csb.bio.io.procheck import ProcheckParser
@test.functional
class TestProcheckParser(test.Case):
def setUp(self):
super(TestProcheckParser, self).setUp()
self.file = self.config.getTestFile('2JZC.sum')
self.parser = ProcheckParser()
def testParse(self):
res = self.parser.parse(self.file)
self.assertEqual(res['#residues'], 201)
self.assertEqual(res['rama_core'], 69.5)
self.assertEqual(res['rama_allow'], 22.6)
self.assertEqual(res['rama_gener'], 5.6)
self.assertEqual(res['rama_disall'], 2.3)
self.assertEqual(res['g_dihedrals'], -0.1)
self.assertEqual(res['g_bond'], 0.51)
self.assertEqual(res['g_overall'], 0.14)
self.assertEqual(res['badContacts'], 5581)
if __name__ == '__main__':
test.Console()
|