27 lines
630 B
Python
27 lines
630 B
Python
#! /usr/bin/python
|
|
|
|
"""
|
|
Tests for the 'cybertools.knowledge.survey' package.
|
|
"""
|
|
|
|
import unittest, doctest
|
|
from zope.testing.doctestunit import DocFileSuite
|
|
from cybertools.knowledge.knowing import Knowing
|
|
|
|
|
|
class TestSurvey(unittest.TestCase):
|
|
"Basic tests for the survey package."
|
|
|
|
def testBasicStuff(self):
|
|
p = Knowing()
|
|
|
|
|
|
def test_suite():
|
|
flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
|
|
return unittest.TestSuite((
|
|
unittest.makeSuite(TestSurvey),
|
|
DocFileSuite('README.txt', optionflags=flags),
|
|
))
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(defaultTest='test_suite')
|