[Zope3-checkins]
SVN: Zope3/branches/hdima-language-namespace/src/zope/
All TestRequest functionality moved to
zope.publisher.tests.test_browserlanguages
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Oct 21 09:31:51 EDT 2005
Log message for revision 39549:
All TestRequest functionality moved to zope.publisher.tests.test_browserlanguages
Changed:
U Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/tests/test_browserlanguages.py
U Zope3/branches/hdima-language-namespace/src/zope/publisher/tests/test_browserlanguages.py
-=-
Modified: Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/tests/test_browserlanguages.py
===================================================================
--- Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/tests/test_browserlanguages.py 2005-10-21 10:35:09 UTC (rev 39548)
+++ Zope3/branches/hdima-language-namespace/src/zope/app/publisher/browser/tests/test_browserlanguages.py 2005-10-21 13:31:50 UTC (rev 39549)
@@ -19,6 +19,7 @@
from zope.interface import directlyProvides
from zope.publisher.browser import BrowserLanguages
+from zope.publisher.tests.test_browserlanguages import TestRequest
from zope.publisher.tests.test_browserlanguages import BrowserLanguagesTest
from zope.app.testing import ztapi
@@ -31,15 +32,6 @@
from zope.app.publisher.browser import NotCompatibleAdapterError
-class TestRequest(dict):
-
- def __init__(self, languages):
- self.localized = False
- self["HTTP_ACCEPT_LANGUAGE"] = languages
-
- def setupLocale(self):
- self.localized = True
-
class CacheableBrowserLanguagesTests(PlacelessSetup, BrowserLanguagesTest):
def setUp(self):
Modified: Zope3/branches/hdima-language-namespace/src/zope/publisher/tests/test_browserlanguages.py
===================================================================
--- Zope3/branches/hdima-language-namespace/src/zope/publisher/tests/test_browserlanguages.py 2005-10-21 10:35:09 UTC (rev 39548)
+++ Zope3/branches/hdima-language-namespace/src/zope/publisher/tests/test_browserlanguages.py 2005-10-21 13:31:50 UTC (rev 39549)
@@ -35,10 +35,11 @@
class TestRequest(dict):
def __init__(self, languages):
+ self.localized = False
self["HTTP_ACCEPT_LANGUAGE"] = languages
def setupLocale(self):
- pass
+ self.localized = True
class BrowserLanguagesTest(unittest.TestCase):
More information about the Zope3-Checkins
mailing list