summaryrefslogtreecommitdiff
path: root/src/zope/i18n/testing.py
diff options
context:
space:
mode:
authorChristian Theune <ct@gocept.com>2007-05-03 21:57:54 +0000
committerChristian Theune <ct@gocept.com>2007-05-03 21:57:54 +0000
commit2754b8e3c1c20da00c78e680aeb857674dddcd93 (patch)
treef1a295d1ccc6cf3f1b5906283016ee0ed578f467 /src/zope/i18n/testing.py
parentf9c90db84773e5d4e3860409eda8a317f4e07487 (diff)
parent565b0ef9e74a89a39e85b9171db1b29d3b0a88bf (diff)
downloadzope-i18n-2754b8e3c1c20da00c78e680aeb857674dddcd93.tar.gz
Moving code to satellite.
Diffstat (limited to 'src/zope/i18n/testing.py')
-rw-r--r--src/zope/i18n/testing.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/zope/i18n/testing.py b/src/zope/i18n/testing.py
new file mode 100644
index 0000000..aff343c
--- /dev/null
+++ b/src/zope/i18n/testing.py
@@ -0,0 +1,29 @@
+##############################################################################
+#
+# Copyright (c) 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# 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.
+#
+##############################################################################
+"""Unit test logic for setting up and tearing down basic infrastructure
+
+$Id$
+"""
+import zope.component
+from zope.publisher.browser import BrowserLanguages
+from zope.publisher.http import HTTPCharsets
+
+def setUp(test=None):
+ zope.component.provideAdapter(HTTPCharsets)
+ zope.component.provideAdapter(BrowserLanguages)
+
+class PlacelessSetup(object):
+
+ def setUp(self):
+ setUp()