Esempio n. 1
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Esempio n. 2
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Esempio n. 3
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")
Esempio n. 4
0
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
Esempio n. 5
0
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
Esempio n. 6
0
 def test_extra_closing(self):
     with self.assertRaises(ParsingError):
         lython_compile("(foo))")