[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py Module with utilities for testing browser views added.
Charlie Clark
charlie at begeistert.org
Mon Oct 11 15:05:05 EDT 2010
Log message for revision 117463:
Module with utilities for testing browser views added.
Changed:
A Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py
-=-
Added: Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py (rev 0)
+++ Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py 2010-10-11 19:05:04 UTC (rev 117463)
@@ -0,0 +1,32 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Foundation and Contributors.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Various utilities for testing browser views"""
+
+from zope.publisher.browser import TestRequest
+
+
+class DummyResponse(object):
+
+ def redirect(self, value):
+ self.location = value
+
+
+class DummyRequest(TestRequest):
+
+
+ def __init__(self, **kw):
+ super(DummyRequest, self).__init__(kw)
+ self.RESPONSE = DummyResponse()
+
+ def getPreferredCharsets(self):
+ return ['utf-8']
Property changes on: Products.CMFDefault/trunk/Products/CMFDefault/browser/test_utils.py
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the checkins
mailing list