merged trunk mrtopf-networking to trunk, grokified it, fixed a bug when not finding a serializer and added a test for it. Capabilities now also have a POST method for POSTing data to them. GET, etc. is pending.
This commit is contained in:
27
pyogp/lib/base/network/tests/testDocTests.py
Normal file
27
pyogp/lib/base/network/tests/testDocTests.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import unittest
|
||||
import doctest
|
||||
|
||||
optionflags = doctest.REPORT_ONLY_FIRST_FAILURE | doctest.ELLIPSIS
|
||||
|
||||
# setup functions
|
||||
|
||||
def setUp(self):
|
||||
# override the default
|
||||
from pyogp.lib.base.network import IRESTClient, MockupClient
|
||||
from zope.component import provideUtility
|
||||
from pyogp.lib.base.tests.base import AgentDomain
|
||||
provideUtility(MockupClient(AgentDomain()), IRESTClient)
|
||||
|
||||
def tearDown(self):
|
||||
print "down"
|
||||
|
||||
def test_suite():
|
||||
suite = unittest.TestSuite()
|
||||
suite.addTest(
|
||||
doctest.DocFileSuite("basics.txt",
|
||||
package="pyogp.lib.base.network.tests",
|
||||
setUp = setUp,
|
||||
tearDown = tearDown,
|
||||
)
|
||||
)
|
||||
return suite
|
||||
Reference in New Issue
Block a user