コード例 #1
0
ファイル: tests.py プロジェクト: zozzz/raven-python
 def test_calls_is_valid_origin_with_header_as_get(self, is_valid_origin):
     with self.settings(ROOT_URLCONF=self.urls):
         self.client.get(self.path, HTTP_ORIGIN='http://example.com')
     is_valid_origin.assert_called_once_with('http://example.com')
コード例 #2
0
 def test_calls_is_valid_origin_with_header_as_get(self, is_valid_origin):
     self.client.get(self.path, HTTP_ORIGIN='http://example.com')
     is_valid_origin.assert_called_once_with('http://example.com')
コード例 #3
0
 def test_calls_is_valid_origin_with_header_as_get(self, is_valid_origin):
     with self.settings(ROOT_URLCONF=self.urls):
         self.client.get(self.path, HTTP_ORIGIN='http://example.com')
     is_valid_origin.assert_called_once_with('http://example.com')
コード例 #4
0
ファイル: tests.py プロジェクト: sharoonthomas/raven
 def test_calls_is_valid_origin_with_header(self, is_valid_origin):
     self.client.post(self.path, HTTP_ORIGIN="http://example.com")
     is_valid_origin.assert_called_once_with("http://example.com")
コード例 #5
0
ファイル: tests.py プロジェクト: collective/mr.poe
 def test_calls_is_valid_origin_with_header_as_get(self, is_valid_origin):
     self.client.get(self.path, HTTP_ORIGIN='http://example.com')
     is_valid_origin.assert_called_once_with('http://example.com')