Hi All,
I have a view that raises a NotFound if it can't find the model it's
trying to render.
I have a functional test for this that uses WebTest along the lines of:
def test_not_there(self):
self.testapp.get('/not_there', status=404)
This results in the following barf from WebTest:
self.testapp.get('/not_there', status=404)
File "build/bdist.linux-i686/egg/webtest/__init__.py", line 156, in get
File "build/bdist.linux-i686/egg/webtest/__init__.py", line 378, in
do_request
File
"/home/chris/buildout-eggs/WebOb-1.0.1-py2.6.egg/webob/response.py",
line 278, in _body__get
body = self._body = ''.join(self._app_iter)
File "build/bdist.linux-i686/egg/webtest/lint.py", line 272, in next
AssertionError: Iterator <listiterator object at 0xa930f6c> returned a
non-str object: u'\n <html>\n <title>404 Not
Found</title>\n <body>\n <h1>404 Not
Found</h1>\n <code>not_there</code>\n </body>\n
</html>\n
So, looks like WebTest is complaining about the unicode object returned
here. But, who's in the wrong? Pyramid or WebTest?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/pylons-devel?hl=en.