Test each method in test_crossdomain_get_only
iterate through not allowed methods and assert Change-Id: Ia304709fc56d3e81bb1326b56a4b0d64ed698160 Signed-off-by: Tim Burke <tim.burke@gmail.com>
This commit is contained in:
committed by
Tim Burke
parent
a9a1ea4137
commit
a6bde729c5
@@ -77,8 +77,8 @@ class TestCrossDomain(unittest.TestCase):
|
||||
for method in ['HEAD', 'PUT', 'POST', 'COPY', 'OPTIONS']:
|
||||
req = Request.blank('/crossdomain.xml',
|
||||
environ={'REQUEST_METHOD': method})
|
||||
resp = self.app(req.environ, start_response)
|
||||
self.assertEqual(resp, b'FAKE APP')
|
||||
resp = self.app(req.environ, start_response)
|
||||
self.assertEqual(resp, b'FAKE APP')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user