Files
Hippolyzer/pyogp/lib/base/tests/testDocTests.py
tao.takashi 3273416923 added test suite for login, using a doctest and the dummy server defined in base.py
After setup.py is adjusted you first have to start the test server using bin/testserver and after that running the tests using bin/test

This will be later refactored to be more automatic.
2008-07-14 18:00:20 +00:00

24 lines
515 B
Python

import unittest
import doctest
optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | doctest.ELLIPSIS
# setup functions
def setUp(self):
from pyogp.lib.base.registration import init
init()
print "ok"
def tearDown(self):
print "down"
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite("login.txt",
package="pyogp.lib.base.tests",
setUp = setUp,
tearDown = tearDown,
)
))