예제 #1
0
파일: tests.py 프로젝트: Wilfred/Lython
 def assertCompilesTo(self, source, expected_result):
     self.assertEqual(lython_compile(source), expected_result)
예제 #2
0
파일: tests.py 프로젝트: Wilfred/Lython
 def test_extra_opening(self):
     with self.assertRaises(ParsingError):
         lython_compile("(")
예제 #3
0
파일: tests.py 프로젝트: Wilfred/Lython
 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))")