Add path to MockRequest
authorSverre Rabbelier <srabbelier@gmail.com>
Fri, 06 Mar 2009 17:13:13 +0000
changeset 1689 72dd9688627c
parent 1688 f8457a410d1f
child 1690 376e75215f35
Add path to MockRequest Patch by: Sverre Rabbelier
tests/test_utils.py
--- a/tests/test_utils.py	Fri Mar 06 17:12:51 2009 +0000
+++ b/tests/test_utils.py	Fri Mar 06 17:13:13 2009 +0000
@@ -23,6 +23,6 @@
 class MockRequest(object):
   """Shared dummy request object to mock common aspects of a request.
   """
-  def __init__(self):
+  def __init__(self, path=None):
     self.REQUEST = self.GET = self.POST = {}
-
+    self.path = path