def test_with_bad_input_length(self): with self.assertRaises(ValueError): flips.parse_func_group('blah')
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)
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)
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)
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)