[Checkins] SVN: z3c.bobopublisher/trunk/src/z3c/bobopublisher/ improved the test coverage
Fabio Tranchitella
kobold at kobold.it
Thu Aug 27 15:45:16 EDT 2009
Log message for revision 103314:
improved the test coverage
Changed:
U z3c.bobopublisher/trunk/src/z3c/bobopublisher/README.txt
U z3c.bobopublisher/trunk/src/z3c/bobopublisher/browser.py
-=-
Modified: z3c.bobopublisher/trunk/src/z3c/bobopublisher/README.txt
===================================================================
--- z3c.bobopublisher/trunk/src/z3c/bobopublisher/README.txt 2009-08-27 19:35:38 UTC (rev 103313)
+++ z3c.bobopublisher/trunk/src/z3c/bobopublisher/README.txt 2009-08-27 19:45:16 UTC (rev 103314)
@@ -146,6 +146,9 @@
Using the test application, we are able to call the page and get its result:
+ >>> testapp.get('/subitem', status=302).body
+ 'See http://localhost/subitem/'
+
>>> testapp.get('/subitem/index.html', status=200).body
'XYZ: <Root object at ...>'
Modified: z3c.bobopublisher/trunk/src/z3c/bobopublisher/browser.py
===================================================================
--- z3c.bobopublisher/trunk/src/z3c/bobopublisher/browser.py 2009-08-27 19:35:38 UTC (rev 103313)
+++ z3c.bobopublisher/trunk/src/z3c/bobopublisher/browser.py 2009-08-27 19:45:16 UTC (rev 103314)
@@ -37,6 +37,13 @@
>>> verifyObject(IBrowserPage, obj)
True
+ This class is not directly usable and should be subclassed:
+
+ >>> obj()
+ Traceback (most recent call last):
+ ...
+ NotImplementedError: __call__ method not implemented
+
"""
implements(IBrowserPage)
More information about the checkins
mailing list