[Inteproxy-commits] r204 - in trunk: . test

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 11 21:07:20 CEST 2009


Author: bh
Date: 2009-09-11 21:07:19 +0200 (Fri, 11 Sep 2009)
New Revision: 204

Modified:
   trunk/ChangeLog
   trunk/test/test_transcoder_map.py
Log:
* test/test_transcoder_map.py
(TestTranscoderMapNoWildcards.test_lookup): Removed this test for
an internal method that is adequately tested indirectly anyway.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-09-11 13:19:47 UTC (rev 203)
+++ trunk/ChangeLog	2009-09-11 19:07:19 UTC (rev 204)
@@ -1,5 +1,11 @@
 2009-09-11  Bernhard Herzog  <bh at intevation.de>
 
+	* test/test_transcoder_map.py
+	(TestTranscoderMapNoWildcards.test_lookup): Removed this test for
+	an internal method that is adequately tested indirectly anyway.
+
+2009-09-11  Bernhard Herzog  <bh at intevation.de>
+
 	* test/support.py (FileTestMixin): Upgrade to a newer version of
 	FileTestMixin.  This one uses test specific directory for all
 	files created by a test case and has better documentation.

Modified: trunk/test/test_transcoder_map.py
===================================================================
--- trunk/test/test_transcoder_map.py	2009-09-11 13:19:47 UTC (rev 203)
+++ trunk/test/test_transcoder_map.py	2009-09-11 19:07:19 UTC (rev 204)
@@ -42,34 +42,6 @@
 """
     #
 
-    def test_lookup(self):
-        """Test the lookup method"""
-        test_cases = [
-            ("GET", "inteproxy-demo.intevation.org", "/cgi-bin/frida-wms",
-             OWSProxyGETTranscoder),
-            ("POST", "inteproxy-demo.intevation.org", "/cgi-bin/frida-wms",
-             OWSProxyPOSTTranscoder),
-            ("GET", "inteproxy-demo.intevation.org", "/cgi-bin/frida",
-             IdentityTranscoder),
-            ("POST", "inteproxy-demo.intevation.org", "/cgi-bin/frida",
-             IdentityTranscoder),
-
-            ("GET", "example.com", "/foo",
-             BasicAuthTranscoder),
-            ("POST", "example.com", "/foo",
-             BasicAuthTranscoder),
-
-            # Example for a non-WMS request sent by deejump
-            ("GET", "schemas.opengeospatial.net",
-             "/wms/1.1.1/WMS_MS_Capabilities.dtd", IdentityTranscoder),
-            ]
-
-        for method, host, path, expectedcls in test_cases:
-            cls = self.transcoder_map.lookup(method, host, path)
-            msg=("Wrong class for %(method)s %(host)s%(path)s:"
-                 " got %(cls)s expected %(expectedcls)s" % locals())
-            self.assertEquals(cls, expectedcls, msg)
-
     def test_get_transcoder_http_proxy(self):
         """Test the get_transcoder method in http-proxy mode"""
         test_cases = [



More information about the Inteproxy-commits mailing list