Commits

Robert Brewer committed c89f126

Fixed a test for HTTP/1.0.

Comments (0)

Files changed (1)

cherrypy/test/test_static.py

         self.getPage("/docroot")
         self.assertStatus((302, 303))
         self.assertHeader('Location', '%s/docroot/' % self.base())
-        self.assertBody("This resource can be found at <a href='%s/docroot/'>"
-                        "%s/docroot/</a>." % (self.base(), self.base()))
+        self.assertMatchesBody("This resource .* at <a href='%s/docroot/'>"
+                               "%s/docroot/</a>." % (self.base(), self.base()))
     
     def test_config_errors(self):
         # Check that we get an error if no .file or .dir