示例#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))")