[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests - testContents.py:1.3.2.1

Stephan Richter srichter@cbu.edu
Fri, 14 Jun 2002 10:48:59 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv20580/lib/python/Zope/App/OFS/Container/Views/Browser/tests

Modified Files:
      Tag: srichter-z3-unicode-branch
	testContents.py 
Log Message:
Branch-specifc commit, so that Barry and Fred can help me debug the existing
errors.


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/tests/testContents.py 1.3 => 1.3.2.1 ===
 from unittest import TestCase, TestSuite, main, makeSuite
 from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter
+
+from Zope.I18n.IUserPreferredCharsets import IUserPreferredCharsets
+
+from Zope.Publisher.HTTP.HTTPRequest import IHTTPRequest
+from Zope.Publisher.HTTP.HTTPCharsets import HTTPCharsets
+
 
 class BaseTestContentsBrowserView(PlacelessSetup):
     """Base class for testing browser contents.
@@ -29,6 +36,11 @@
     Subclasses need to define a method, '_TestView__newView', that
     takes a context object and that returns a new test view.
     """
+
+    def setUp(self):
+        PlacelessSetup.setUp(self)
+        provideAdapter(IHTTPRequest, IUserPreferredCharsets, HTTPCharsets)
+        
 
     def testInfo(self):
         """ Do we get the correct information back from ContainerContents? """