aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/authentication.py
diff options
context:
space:
mode:
authorFernando Rocha2013-03-27 19:00:36 -0300
committerFernando Rocha2013-03-27 19:00:36 -0300
commitb2cea84fae4f721e8eb6432b3d1bab1309e21a00 (patch)
tree69f163e1ad4d495507ba8bbe826e0e1d8dfaec3c /rest_framework/tests/authentication.py
parentf1b8fee4f1e0ea2503d4e0453bdc3049edaa2598 (diff)
downloaddjango-rest-framework-b2cea84fae4f721e8eb6432b3d1bab1309e21a00.tar.bz2
Complete remove of client checks from oauth2
Signed-off-by: Fernando Rocha <fernandogrd@gmail.com>
Diffstat (limited to 'rest_framework/tests/authentication.py')
-rw-r--r--rest_framework/tests/authentication.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py
index 375b19bd..629db422 100644
--- a/rest_framework/tests/authentication.py
+++ b/rest_framework/tests/authentication.py
@@ -500,15 +500,6 @@ class OAuth2Tests(TestCase):
self.assertEqual(response.status_code, 401)
@unittest.skipUnless(oauth2_provider, 'django-oauth2-provider not installed')
- def test_get_form_with_wrong_client_data_failing_auth(self):
- """Ensure GETing form over OAuth with incorrect client credentials fails"""
- auth = self._create_authorization_header()
- params = self._client_credentials_params()
- params['client_id'] += 'a'
- response = self.csrf_client.get('/oauth2-test/', params, HTTP_AUTHORIZATION=auth)
- self.assertEqual(response.status_code, 401)
-
- @unittest.skipUnless(oauth2_provider, 'django-oauth2-provider not installed')
def test_get_form_passing_auth(self):
"""Ensure GETing form over OAuth with correct client credentials succeed"""
auth = self._create_authorization_header()