Example #1
0
 def test_with_bad_input_length(self):
     with self.assertRaises(ValueError):
         flips.parse_func_group('blah')
Example #2
0
 def test_with_res_and_name(self):
     fg = ' B 528 THR OG1 '
     ref = ['B', '528', 'THR', 'OG1', '']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)
Example #3
0
 def test_with_altconf(self):
     fg = ' B 528 THR OG1A'
     ref = ['B', '528', 'THR', 'OG1', 'A']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)
Example #4
0
 def test_with_4_char_chain_ids(self):
     fg = '   B 510 HIS     '  # len 17
     ref = ['B', '510', 'HIS', '', '']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)
Example #5
0
 def test_with_bad_input_length(self):
     with self.assertRaises(ValueError):
         flips.parse_func_group('blah')
Example #6
0
 def test_with_altconf(self):
     fg = ' B 528 THR OG1A'
     ref = ['B', '528', 'THR', 'OG1', 'A']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)
Example #7
0
 def test_with_res_and_name(self):
     fg = ' B 528 THR OG1 '
     ref = ['B', '528', 'THR', 'OG1', '']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)
Example #8
0
 def test_with_4_char_chain_ids(self):
     fg = '   B 510 HIS     '  # len 17
     ref = ['B','510','HIS','','']
     res = flips.parse_func_group(fg)
     self.assertEqual(res, ref)