1. cherrypy
  2. CherryPy

Commits

Gustavo Picon  committed a227957

Fixing brittle tests [exposed by 0c2655b15605]

  • Participants
  • Parent commits 2c7e50c
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/test/test_core.py

View file
         # 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():
             # 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
         # 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()))