[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests - test_viewzpt.py:1.14

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 00:12:39 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv30349/src/zope/app/pagetemplate/tests

Modified Files:
	test_viewzpt.py 
Log Message:


Ripped out some leftover usage code.


=== Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py:1.13	Mon Mar 15 15:42:07 2004
+++ Zope3/src/zope/app/pagetemplate/tests/test_viewzpt.py	Mon Mar 29 00:12:38 2004
@@ -85,28 +85,6 @@
         self.failUnless(the_view is views[the_view_name])
 
 
-class TestViewZPTUsage(PlacefulSetup, unittest.TestCase):
-
-    def setUp(self):
-        super(TestViewZPTUsage, self).setUp()
-        self.context = C1()
-        self.request = None
-
-    def testInitWithUsage(self):
-        self.t = ViewPageTemplateFile('testusage.pt', usage=u"test")
-        result = self.t(self)
-        self.assertEquals(result, "<html><body>test</body></html>\n")
-        result = self.t(self, template_usage=u"other")
-        self.assertEquals(result, "<html><body>other</body></html>\n")
-
-    def testInitWithoutUsage(self):
-        self.t = ViewPageTemplateFile('testusage.pt')
-        result = self.t(self)
-        self.assertEquals(result, "<html><body></body></html>\n")
-        result = self.t(self, template_usage=u"other")
-        self.assertEquals(result, "<html><body>other</body></html>\n")
-
-
 class TestViewZPTContentType(unittest.TestCase):
 
     def testInitWithoutType(self):
@@ -133,7 +111,6 @@
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(TestViewZPT))
-    suite.addTest(unittest.makeSuite(TestViewZPTUsage))
     suite.addTest(unittest.makeSuite(TestViewZPTContentType))
     return suite
 




More information about the Zope3-Checkins mailing list