示例#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)