31 lines
813 B
Python
Executable file
31 lines
813 B
Python
Executable file
# $Id$
|
|
|
|
import unittest, doctest
|
|
from zope.testing.doctestunit import DocFileSuite
|
|
from zope.interface.verify import verifyClass
|
|
try:
|
|
from loops.expert import query
|
|
ignore = False
|
|
except ImportError:
|
|
print 'Skipping loops.expert'
|
|
ignore = True
|
|
|
|
class Test(unittest.TestCase):
|
|
"Basic tests for the expert sub-package."
|
|
|
|
def testSomething(self):
|
|
pass
|
|
|
|
|
|
def test_suite():
|
|
if ignore:
|
|
return unittest.TestSuite() # do nothing
|
|
flags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
|
|
return unittest.TestSuite((
|
|
unittest.makeSuite(Test),
|
|
DocFileSuite('README.txt', optionflags=flags),
|
|
DocFileSuite('search.txt', optionflags=flags),
|
|
))
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(defaultTest='test_suite')
|