On Tue, Apr 17, 2007 at 08:37:29PM +0200, Florian Lindner wrote:
I've tried to add a test to my package (I must confess it's my first test.)
I've added an directory tests, created an empty __init__.py in it and a
file
named test_proxycache.py which contains:
..
Now I try to run the tests:
Hi Florian,
I've had some success with:
import unittest
class MyTestClass (unittest.TestCase):
def test_something (self):
...
def test_suite ():
return unittest.TestLoader().loadTestsFromTestCase(MyTestClass)
if __name__ == '__main__':