# -*- coding: utf-8 -*-
# $Id: testPyUnit.py 1603 2011-10-10 12:33:02Z amelung $
#
# Copyright (c) 2007-2011 Otto-von-Guericke-Universität Magdeburg
#
# This file is part of ECSpooler.
import unittest
"""
"""
# -- individual tests -----------------------------------------------------
'submission':'def square(x): return x * x',
'unitTests': \
"""import unittest
class testSquare(unittest.TestCase):
def testSquare(self):
self.assertEqual(25, square(5), 'Stupid student')
""",
'tests': ['default'],
'imports': '#',
}
"""_manage_checkSyntax should return False for a syntactical incorrect program"""
if result:
else:
"""_manage_checkSyntax should return True for a correct program"""
if result:
else:
"""_manage_checkSemantic should return False for an incorrect program"""
if result:
else:
"""_manage_checkSemantic should return True for a correct program"""
if result:
else:
def test_suite():
"""
"""
return suite
# -- main ---------------------------------------------------------------------
if __name__ == '__main__':