Merge the excellent doctest autodiscovery feature from elliot murphy. run 'trial terminatorlib' in the toplevel directory and marvel at his glorious works

This commit is contained in:
Chris Jones 2010-01-05 09:46:28 +00:00
commit 55dbb0e336
2 changed files with 13 additions and 0 deletions

View File

View File

@ -0,0 +1,13 @@
"""Load up the tests."""
from unittest import TestSuite
from doctest import DocTestSuite, ELLIPSIS
def test_suite():
suite = TestSuite()
for name in (
'config',
'plugin',
'borg',
):
suite.addTest(DocTestSuite('terminatorlib.' + name))
return suite