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
Florian Lindner wrote:
I've added an directory "tests", created an empty __init__.py in it and a file
named test_proxycache.py which contains:
import unittest
I *highly* recommend doctests over most uses of unittest. One
reasonable example of doctest usage is in zc.copy
(http://svn.zope.or
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__':
unittest.main(defaultTest
Hello,
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:
import unittest
from zope.testing.doctestunit import DocTestSuite
from zope.app.container.t