Running tests at level 1 Running unit tests: Running: ................. Ran 17 tests with 0 failures and 0 errors in 0.457 seconds. Running grokcore.formlib.ftests.test_functional.FunctionalLayer tests: Set up grokcore.formlib.ftests.test_functional.FunctionalLayer in 1.937 seconds. Running: .. Failure in test addform (grokcore.formlib.ftests.form) Failed doctest test for grokcore.formlib.ftests.form.addform File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform.py", line 0, in addform ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform.py", line 13, in grokcore.formlib.ftests.form.addform Failed example: browser.getControl("Add entry").click() Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in browser.getControl("Add entry").click() File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 591, in click self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1)) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 381, in _clickSubmit id=control.id, name=control.name, label=label, coord=coord)) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 229, in _mech_open response = UserAgentBase.open(self, request, data) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 192, in open response = meth(req, response) File "build/bdist.linux-i686/egg/mechanize/_http.py", line 590, in http_response "http", request, response, code, msg, hdrs) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 209, in error result = apply(self._call_chain, args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "build/bdist.linux-i686/egg/mechanize/_http.py", line 135, in http_error_302 return self.parent.open(new) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 229, in _mech_open response = UserAgentBase.open(self, request, data) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 181, in open response = urlopen(self, req, data) File "/usr/lib/python2.5/urllib2.py", line 399, in _open '_open', req) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 131, in http_open return self.do_open(PublisherConnection, req) File "/usr/lib/python2.5/urllib2.py", line 1079, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 84, in request self.response = self.caller(request_string, handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.testing-3.4.3-py2.5.egg/zope/app/testing/functional.py", line 699, in __call__ request = publish(request, handle_errors=handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 130, in publish obj = request.traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/browser.py", line 513, in traverse ob = super(BrowserRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/http.py", line 463, in traverse ob = super(HTTPRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/base.py", line 263, in traverse obj = publication.traverseName(self, obj, entry_name) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/publicationtraverse.py", line 61, in traverseName ob2 = adapter.publishTraverse(request, nm) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/traversers.py", line 44, in publishTraverse raise NotFound(ob, name) NotFound: Object: , name: u'manfred' ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform.py", line 14, in grokcore.formlib.ftests.form.addform Failed example: print browser.contents Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in print browser.contents File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 188, in contents old_location = response.tell() AttributeError: 'NoneType' object has no attribute 'tell' ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform.py", line 23, in grokcore.formlib.ftests.form.addform Failed example: browser.getControl("Add entry").click() Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in browser.getControl("Add entry").click() File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 591, in click self.browser._clickSubmit(self.mech_form, self.mech_control, (1,1)) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 381, in _clickSubmit id=control.id, name=control.name, label=label, coord=coord)) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 229, in _mech_open response = UserAgentBase.open(self, request, data) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 192, in open response = meth(req, response) File "build/bdist.linux-i686/egg/mechanize/_http.py", line 590, in http_response "http", request, response, code, msg, hdrs) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 209, in error result = apply(self._call_chain, args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "build/bdist.linux-i686/egg/mechanize/_http.py", line 135, in http_error_302 return self.parent.open(new) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 229, in _mech_open response = UserAgentBase.open(self, request, data) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 181, in open response = urlopen(self, req, data) File "/usr/lib/python2.5/urllib2.py", line 399, in _open '_open', req) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 131, in http_open return self.do_open(PublisherConnection, req) File "/usr/lib/python2.5/urllib2.py", line 1079, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 84, in request self.response = self.caller(request_string, handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.testing-3.4.3-py2.5.egg/zope/app/testing/functional.py", line 699, in __call__ request = publish(request, handle_errors=handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 130, in publish obj = request.traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/browser.py", line 513, in traverse ob = super(BrowserRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/http.py", line 463, in traverse ob = super(HTTPRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/base.py", line 263, in traverse obj = publication.traverseName(self, obj, entry_name) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/publicationtraverse.py", line 61, in traverseName ob2 = adapter.publishTraverse(request, nm) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/traversers.py", line 44, in publishTraverse raise NotFound(ob, name) NotFound: Object: , name: u'ellie' ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform.py", line 24, in grokcore.formlib.ftests.form.addform Failed example: print browser.contents Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in print browser.contents File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 188, in contents old_location = response.tell() AttributeError: 'NoneType' object has no attribute 'tell' ................................. Failure in test addform_applydata (grokcore.formlib.ftests.form) Failed doctest test for grokcore.formlib.ftests.form.addform_applydata File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform_applydata.py", line 0, in addform_applydata ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform_applydata.py", line 25, in grokcore.formlib.ftests.form.addform_applydata Failed example: browser.open("http://localhost/zoo/ellie") Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in browser.open("http://localhost/zoo/ellie") File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 224, in open self.mech_browser.open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data) File "build/bdist.linux-i686/egg/mechanize/_mechanize.py", line 229, in _mech_open response = UserAgentBase.open(self, request, data) File "build/bdist.linux-i686/egg/mechanize/_opener.py", line 181, in open response = urlopen(self, req, data) File "/usr/lib/python2.5/urllib2.py", line 399, in _open '_open', req) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 131, in http_open return self.do_open(PublisherConnection, req) File "/usr/lib/python2.5/urllib2.py", line 1079, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/testing.py", line 84, in request self.response = self.caller(request_string, handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.testing-3.4.3-py2.5.egg/zope/app/testing/functional.py", line 699, in __call__ request = publish(request, handle_errors=handle_errors) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 130, in publish obj = request.traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/browser.py", line 513, in traverse ob = super(BrowserRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/http.py", line 463, in traverse ob = super(HTTPRequest, self).traverse(obj) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/base.py", line 263, in traverse obj = publication.traverseName(self, obj, entry_name) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/publicationtraverse.py", line 61, in traverseName ob2 = adapter.publishTraverse(request, nm) File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/traversers.py", line 44, in publishTraverse raise NotFound(ob, name) NotFound: Object: , name: u'ellie' ---------------------------------------------------------------------- File "/home/jw/projects/grok-dev/grokcore.formlib/src/grokcore/formlib/ftests/form/addform_applydata.py", line 26, in grokcore.formlib.ftests.form.addform_applydata Failed example: print browser.contents Exception raised: Traceback (most recent call last): File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testing-3.5.4-py2.5.egg/zope/testing/doctest.py", line 1356, in __run compileflags, 1) in test.globs File "", line 1, in print browser.contents File "/home/jw/projects/grok-dev/grokcore.formlib/eggs/zope.testbrowser-3.4.2-py2.5.egg/zope/testbrowser/browser.py", line 188, in contents old_location = response.tell() AttributeError: 'NoneType' object has no attribute 'tell' Ran 35 tests with 2 failures and 0 errors in 1.045 seconds. Tearing down left over layers: Tear down grokcore.formlib.ftests.test_functional.FunctionalLayer in 0.004 seconds. Tests with failures: addform (grokcore.formlib.ftests.form) addform_applydata (grokcore.formlib.ftests.form) Total: 52 tests, 2 failures, 0 errors in 3.146 seconds.