예제 #1
0
 def test_with_bad_input_length(self):
     with self.assertRaises(ValueError):
         flips.parse_func_group('blah')
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
 def test_with_bad_input_length(self):
     with self.assertRaises(ValueError):
         flips.parse_func_group('blah')
예제 #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)
예제 #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)
예제 #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)