Пример #1
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Пример #2
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Пример #3
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")
Пример #4
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Пример #5
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Пример #6
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")