[web/test] remove useless calls to self.request() from CORS tests
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 03 Apr 2014 15:51:29 +0200
changeset 9648 15680eb67168
parent 9647 74cddb36ce1e
child 9649 f89c2f127897
[web/test] remove useless calls to self.request() from CORS tests
web/test/unittest_http.py
--- a/web/test/unittest_http.py	Thu Apr 03 15:47:04 2014 +0200
+++ b/web/test/unittest_http.py	Thu Apr 03 15:51:29 2014 +0200
@@ -334,7 +334,6 @@
     def test_noorigin(self):
         with self.options(**{alloworig: '*'}):
             with self.admin_access.web_request() as req:
-                req = self.request()
                 data = self.app_handle_request(req)
                 self.check_no_cors(req)
 
@@ -412,7 +411,6 @@
     def test_noorigin(self):
         with self.options(**{alloworig: '*'}):
             with self.admin_access.web_request(method='OPTIONS') as req:
-                req = self.request()
                 data = self.app_handle_request(req)
                 self.check_no_cors(req)