work in progress: unit and doc tests (README.txt) set up

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@666 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2005-11-08 21:43:59 +00:00
parent 0b57666153
commit 503a35b04e

30
tests.py Executable file
View file

@ -0,0 +1,30 @@
# $Id$
import unittest
from zope.testing.doctestunit import DocFileSuite
from zope.app.testing import ztapi
from zope.interface.verify import verifyClass
from zope.interface import implements
from zope.app import zapi
from zope.app.intid.interfaces import IIntIds
from interfaces import ITask
from task import Task
class Test(unittest.TestCase):
"Basic tests for the loops package."
def testInterfaces(self):
verifyClass(ITask, Task)
self.assert_(ITask.providedBy(Task()),
'Interface ITask is not implemented by class Task.')
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(Test),
DocFileSuite('README.txt'),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')