summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Picon <tabo@tabo.pe>2014-04-16 01:13:47 -0400
committerGustavo Picon <tabo@tabo.pe>2014-04-16 01:13:47 -0400
commit2ce1e30a1fd873118f434b257c8f56f0de4b4649 (patch)
tree797b1b4b6f48b36af1af63bf9e59d34726b1d8c2
parent3aa71a7f285dc697e433d69843f0674ab91ff4bd (diff)
downloadcherrypy-2ce1e30a1fd873118f434b257c8f56f0de4b4649.tar.gz
Fixing brittle tests [exposed by 0c2655b15605]
-rw-r--r--cherrypy/test/test_core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/test/test_core.py b/cherrypy/test/test_core.py
index 86f59191..81f90797 100644
--- a/cherrypy/test/test_core.py
+++ b/cherrypy/test/test_core.py
@@ -317,7 +317,7 @@ class CoreRequestHandlingTest(helper.CPWebCase):
# Make sure GET params are preserved.
self.getPage("/redirect?id=3")
self.assertStatus(301)
- self.assertInBody("<a href='%s/redirect/?id=3'>"
+ self.assertInBody('<a href="%s/redirect/?id=3">'
"%s/redirect/?id=3</a>" % (self.base(), self.base()))
if self.prefix():
@@ -325,7 +325,7 @@ class CoreRequestHandlingTest(helper.CPWebCase):
# we're using a virtual root and the URI is "/vroot" (no slash).
self.getPage("")
self.assertStatus(301)
- self.assertInBody("<a href='%s/'>%s/</a>" %
+ self.assertInBody('<a href="%s/">%s/</a>' %
(self.base(), self.base()))
# Test that requests for NON-index methods WITH a trailing slash
@@ -333,7 +333,7 @@ class CoreRequestHandlingTest(helper.CPWebCase):
# Make sure GET params are preserved.
self.getPage("/redirect/by_code/?code=307")
self.assertStatus(301)
- self.assertInBody("<a href='%s/redirect/by_code?code=307'>"
+ self.assertInBody('<a href="%s/redirect/by_code?code=307">'
"%s/redirect/by_code?code=307</a>"
% (self.base(), self.base()))