Пример #1
0
 def test_not_only_switch_parsing(self):
     self.assertEqual(self.unit5_answer, parser(self.unit5))
Пример #2
0
 def test_nested_switch_parsing(self):
     self.assertEqual(self.unit3_answer, parser(self.unit3))
Пример #3
0
 def test_consistent_switch_parsing(self):
     self.assertEqual(self.unit4_answer, parser(self.unit4))
Пример #4
0
 def test_inappropriate_indent_parsing(self):
     self.assertEqual(self.unit1_answer, parser(self.unit2))