Exemple #1
0
    def test_raises_on_bad_input(self):
        content = '.HEx'

        with self.assertRaises(RuntimeError):
            parse._get_secondary_sequence(contents=content)
Exemple #2
0
    def test_can_parse_multiline_input(self):
        content = '..HH\nEE..\n'

        results = parse._get_secondary_sequence(contents=content)

        self.assertEqual(results, '..HHEE..')
Exemple #3
0
    def test_can_parse_input_with_comment(self):
        content = '..HH\n#comment\nEE..\n'

        results = parse._get_secondary_sequence(contents=content)
Exemple #4
0
    def test_can_parse_multiline_input(self):
        content = '..HH\nEE..\n'

        results = parse._get_secondary_sequence(contents=content)

        self.assertEqual(results, '..HHEE..')
Exemple #5
0
    def test_raises_on_bad_input(self):
        content = '.HEx'

        with self.assertRaises(RuntimeError):
            parse._get_secondary_sequence(contents=content)
Exemple #6
0
    def test_can_parse_input_with_comment(self):
        content = '..HH\n#comment\nEE..\n'

        results = parse._get_secondary_sequence(contents=content)
Exemple #7
0
    def test_can_parse_simple_input(self):
        content = "..HHEE.."

        results = parse._get_secondary_sequence(content=content)

        self.assertEqual(results, "..HHEE..")
Exemple #8
0
    def test_can_parse_simple_input(self):
        content = "..HHEE.."

        results = parse._get_secondary_sequence(content=content)

        self.assertEqual(results, "..HHEE..")