milibopp / obsub

Small python module that implements the observer pattern via a decorator.
Other
12 stars 3 forks source link

Cleanup tests #24

Closed coldfix closed 10 years ago

coldfix commented 10 years ago

Provide a unittest.TestCase version of the doctests. This allows to do both old-style/new-style class tests with less redundant test code.

The old-style test errors. Do you have any idea why? Probably, it should be documented only to use new-style classes..

coldfix commented 10 years ago

Fixed the issue for old style class tests.

For some reason there is now a runtime error when finishing python setup.py test on python26. python setup.py nosetests and nosetests seem to work fine.

milibopp commented 10 years ago

This is very nice. The old doctests are good for description but these unittests are certainly better as tests. I'll merge.