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})
|
||||
|
||||
self.assert_status(301)
|
||||
self.assertRegexpMatches(self.env.conn.response.getheader('location'),
|
||||
'http[s]?://%s%s/' % (host, path))
|
||||
expected = '%s://%s%s/' % (
|
||||
self.env.account.conn.storage_scheme, host, path)
|
||||
self.assertEqual(self.env.conn.response.getheader('location'),
|
||||
expected)
|
||||
|
||||
def _test_redirect_slash_direct(self, anonymous):
|
||||
host = self.env.account.conn.storage_netloc
|
||||
|
Loading…
Reference in New Issue
Block a user