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