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:
Shashirekha Gundur
committed by
Tim Burke
parent
a9a1ea4137
commit
a6bde729c5
1 changed files with 2 additions and 2 deletions
@@ -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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.