Tighten up staticweb redirect test
Change-Id: Ifc3f2f58f51c71f4e652567b4f9c82deb98bbb5b
This commit is contained in:
parent
b39a88ca65
commit
8e892713ee
@ -160,8 +160,10 @@ class TestStaticWeb(Base):
|
|||||||
'absolute_path': True})
|
'absolute_path': True})
|
||||||
|
|
||||||
self.assert_status(301)
|
self.assert_status(301)
|
||||||
self.assertRegexpMatches(self.env.conn.response.getheader('location'),
|
expected = '%s://%s%s/' % (
|
||||||
'http[s]?://%s%s/' % (host, path))
|
self.env.account.conn.storage_scheme, host, path)
|
||||||
|
self.assertEqual(self.env.conn.response.getheader('location'),
|
||||||
|
expected)
|
||||||
|
|
||||||
def _test_redirect_slash_direct(self, anonymous):
|
def _test_redirect_slash_direct(self, anonymous):
|
||||||
host = self.env.account.conn.storage_netloc
|
host = self.env.account.conn.storage_netloc
|
||||||
|
Loading…
Reference in New Issue
Block a user