Changeset 1534
- Timestamp:
- 12/16/06 14:20:53
- Files:
-
- trunk/cherrypy/test/test_core.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_core.py
r1529 r1534 389 389 cherrypy.request.asdf = "rassfrassin" 390 390 return existing 391 392 def check(login, password):393 # Dummy check_login_and_password function394 if login != 'login' or password != 'password':395 return u'Wrong login/password'396 391 397 392 cherrypy.config.update({ … … 620 615 self.getPage("/redirect/fragment/%s" % frag) 621 616 self.assertMatchesBody(r"<a href='(.*)\/some\/url\#%s'>\1\/some\/url\#%s</a>" % (frag, frag)) 622 self.assert_(dict(self.headers)['Location'].endswith("#%s" % frag)) 623 self.assertStatus(303) 617 loc = self.assertHeader('Location') 618 assert loc.endswith("#%s" % frag) 619 self.assertStatus(('302 Found', '303 See Other')) 624 620 625 621 def test_InternalRedirect(self):

