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:
tao.takashi
2008-07-24 19:25:02 +00:00
committed by Salad Dais
parent 71d67ffce7
commit 03f309b012
19 changed files with 359 additions and 65 deletions

View 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