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
2016年10月18日 17:23:29 +00:00
committed by Tim Burke
parent a9a1ea4137
commit a6bde729c5

View File

@@ -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
openstack/swift
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.

The note is not visible to the blocked user.