cybertools/organize/tests.py
helmutm 32beb7824f created 'cybertools.organize' package, removed 'cybertools.contact', moved imports (in testing code only) of the latter package to the former one.
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1203 fd906abe-77d9-0310-91a1-e0d9ade77398
2006-05-10 16:10:51 +00:00

30 lines
725 B
Python
Executable file

#! /usr/bin/python
"""
Tests for the 'cybertools.organize' package.
$Id$
"""
import unittest, doctest
from zope.testing.doctestunit import DocFileSuite
from cybertools.organize.party import Person
class TestParty(unittest.TestCase):
"Basic tests for the party module."
def testBasicStuff(self):
p = Person('Meier', 'Hans')
self.assertEqual('Hans', p.firstName)
self.assertEqual('Meier', p.lastName)
def test_suite():
flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
return unittest.TestSuite((
unittest.makeSuite(TestParty),
DocFileSuite('README.txt', optionflags=flags),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')