diff options
author | Christian Theune <ct@gocept.com> | 2007-05-03 21:57:54 +0000 |
---|---|---|
committer | Christian Theune <ct@gocept.com> | 2007-05-03 21:57:54 +0000 |
commit | 2754b8e3c1c20da00c78e680aeb857674dddcd93 (patch) | |
tree | f1a295d1ccc6cf3f1b5906283016ee0ed578f467 /src/zope/i18n/testing.py | |
parent | f9c90db84773e5d4e3860409eda8a317f4e07487 (diff) | |
parent | 565b0ef9e74a89a39e85b9171db1b29d3b0a88bf (diff) | |
download | zope-i18n-2754b8e3c1c20da00c78e680aeb857674dddcd93.tar.gz |
Moving code to satellite.
Diffstat (limited to 'src/zope/i18n/testing.py')
-rw-r--r-- | src/zope/i18n/testing.py | 29 |
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() |