[Zope-CVS] CVS: Packages/FunctionalTests/FunctionalTests/tests -
test_Request.py:1.1.2.2
Karl Anderson
cvs-admin at zope.org
Mon Nov 3 19:16:19 EST 2003
Update of /cvs-repository/Packages/FunctionalTests/FunctionalTests/tests
In directory cvs.zope.org:/tmp/cvs-serv27815
Modified Files:
Tag: kra-misc-branch
test_Request.py
Log Message:
added HTTPRequestTests.testPort()
=== Packages/FunctionalTests/FunctionalTests/tests/test_Request.py 1.1.2.1 => 1.1.2.2 ===
--- Packages/FunctionalTests/FunctionalTests/tests/test_Request.py:1.1.2.1 Mon Nov 3 18:48:28 2003
+++ Packages/FunctionalTests/FunctionalTests/tests/test_Request.py Mon Nov 3 19:16:18 2003
@@ -171,6 +171,13 @@
return self._getTargetClass()( name=name, URL=URL, *args, **kw )
+ def testPort(self):
+
+ request = self._makeOne( URL='http://example.com' )
+ self.assertEquals( request.getPort(), None )
+ request = self._makeOne( URL='http://example.com:80' )
+ self.assertEquals( request.getPort(), 80 )
+
# TODO: test actual API
class ZEORequestTests( unittest.TestCase
More information about the Zope-CVS
mailing list