def test_raises_on_bad_input(self): content = '.HEx' with self.assertRaises(RuntimeError): parse._get_secondary_sequence(contents=content)
def test_can_parse_multiline_input(self): content = '..HH\nEE..\n' results = parse._get_secondary_sequence(contents=content) self.assertEqual(results, '..HHEE..')
def test_can_parse_input_with_comment(self): content = '..HH\n#comment\nEE..\n' results = parse._get_secondary_sequence(contents=content)
def test_can_parse_simple_input(self): content = "..HHEE.." results = parse._get_secondary_sequence(content=content) self.assertEqual(results, "..HHEE..")