Fixed problems in test suite where some modules were relying on requests to be created as a side-effect of other test modules. (They failed when tested standalone).
test_sqlobject.test_redirection:
cherrypy.HTTPRedirect isn't available outside of a request. Monkey-patched in a dummy request that doesn't have this dependancy as a fix. The other possibility would have been to switch the test over to be more of a functional test, creating a request & bringing the whole stack into test, but since the rest of test_sqlobject is a functional test, I decided to keep the style intact.
test_view.test_UnicodeValueAppearingInATemplateIsFine, and
test_view.test_default_output_encoding:
view.base.render sets the response header, which is impossible outside of a request. Added a setup method in test_view.TestView? to create dummy request & response objects. The dummy response object is a new (trivial) addition to testutil.
Discovered these while working on #1762.