コード例 #1
0
ファイル: tests.py プロジェクト: lsochanski/pyoo
 def test_lesson_2(self):
 	self.assertIsInstance(
     	OOLessons.lesson2(ast.parse("")), 
     	dict
     )
     self.assertEqual(
     	OOLessons.lesson2(ast.parse("")),
     	{ 'success': False, 'errors': [{ 'msg': "You have to use 'import ... from ...' statement."}]}
     )
     self.assertEqual(
     	OOLessons.lesson2(ast.parse("")),
     	{ 'success': False, 'errors': [
     	{ 'msg': "You have to import 'car', not '{name}'.", }]}
     )