Use request.start and end
Without the start and end we die on 'assert self.in_request' in the
core per request value store methods.
--- a/tests/app/soc/views/model/test_base.py Mon Sep 14 18:42:52 2009 +0200
+++ b/tests/app/soc/views/model/test_base.py Mon Sep 14 18:43:15 2009 +0200
@@ -95,8 +95,10 @@
"""
request = MockRequest("/test/public")
+ request.start()
access_type = "show"
page_name = "Show Test"
django_args = {'link_id': 'foo', 'scope_path': 'bar'}
actual = self.view.public(request, access_type, page_name=page_name, **django_args)
+ request.end()
self.assertTrue('error' in actual)