[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/session/ftests.py Revert accidental checkin of non-complete functional test changes. A miracle this didn't break..

Martijn Pieters mj at zopatista.com
Wed Aug 2 08:35:57 EDT 2006


Log message for revision 69337:
  Revert accidental checkin of non-complete functional test changes. A miracle this didn't break..

Changed:
  U   Zope3/trunk/src/zope/app/session/ftests.py

-=-
Modified: Zope3/trunk/src/zope/app/session/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/session/ftests.py	2006-08-02 09:49:27 UTC (rev 69336)
+++ Zope3/trunk/src/zope/app/session/ftests.py	2006-08-02 12:35:56 UTC (rev 69337)
@@ -19,8 +19,6 @@
 from zope.app.testing.functional import BrowserTestCase
 from zope.app.zptpage.zptpage import ZPTPage
 
-from interfaces import ISession
-
 class ZPTSessionTest(BrowserTestCase):
     content = u'''
         <div tal:define="
@@ -59,36 +57,11 @@
         self.failUnlessEqual(response2, u'2')
         response3 = self.fetch()
         self.failUnlessEqual(response3, u'3')
-        
 
-class VirtualHostSessionTest(BrowserTestCase):
-    def setUp(self):
-        super(VirtualHostSessionTest, self).setUp()
-        page = ZPTPage()
-        page.source = (u'<div '
-                       u'tal:define="session request/session:products.foo"/>')
-        page.evaluateInlineCode = True
-        root = self.getRootFolder()
-        root['page'] = page
-        self.commit()
-        
-    def tearDown(self):
-        root = self.getRootFolder()
-        del root['page']
-        self.commit()
-        super(VirtualHostSessionTest, self).tearDown()
-    
-    def testShortendPath(self):
-        response = self.publish(
-            '/++skin++Rotterdam/page/++vh++http:localhost:80/++')
-        cookie = self.cookies.values()[0]
-        self.assertEqual(cookie['path'], '/')
-        
 
 def test_suite():
     return unittest.TestSuite((
         unittest.makeSuite(ZPTSessionTest),
-        unittest.makeSuite(VirtualHostSessionTest),
         ))
 
 if __name__ == '__main__':



More information about the Zope3-Checkins mailing list