import unittest
class TestOldPython(unittest.TestCase):
def test_hiss(self):
# old_python = OldPython(age)
# self.assertEqual(expected, old_python.hiss())
assert False # TODO: implement your test here
def test_object_initialization(self):
# old_python = OldPython(age)
assert False # TODO: implement your test here
if __name__ == '__main__':
unittest.main()
Failing assertion is accompanied with proper object setup and a sample
assertion over function/method return value. Names of arguments are
also present, taken from the function/method signature. If you want to
play more with this feature, you're welcome to do so - changes has
been already merged into trunk. I plan on doing a release soon, so the
feature will be available to a wider audience. Comments?
Cheers,
mk
-Chuck
--
http://cobra-language.com/