def test_not_only_switch_parsing(self): self.assertEqual(self.unit5_answer, parser(self.unit5))
def test_nested_switch_parsing(self): self.assertEqual(self.unit3_answer, parser(self.unit3))
def test_consistent_switch_parsing(self): self.assertEqual(self.unit4_answer, parser(self.unit4))
def test_inappropriate_indent_parsing(self): self.assertEqual(self.unit1_answer, parser(self.unit2))