diff options
| author | jonathan vanasco <jonathan@2xlp.com> | 2018-09-17 19:56:45 -0400 |
|---|---|---|
| committer | jonathan vanasco <jonathan@2xlp.com> | 2018-09-17 19:56:45 -0400 |
| commit | cca36aa22ae3b26c5db72fa50f401ee757e8bcbd (patch) | |
| tree | a2254674d47a5344e02a7607f1995c6198d3a705 /tests/oauth2/rfc6749 | |
| parent | b4ceb8a7fae065817f86c259dfbf91344ecb2925 (diff) | |
| parent | f00935f9f5d1305119f278406dbd1174a2c85868 (diff) | |
| download | oauthlib-cca36aa22ae3b26c5db72fa50f401ee757e8bcbd.tar.gz | |
Merge branch 'fix-585_client_id' of github.com:jvanasco/oauthlib into fix-585_client_id
Diffstat (limited to 'tests/oauth2/rfc6749')
| -rw-r--r-- | tests/oauth2/rfc6749/test_parameters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/oauth2/rfc6749/test_parameters.py b/tests/oauth2/rfc6749/test_parameters.py index b211d1e..c42f516 100644 --- a/tests/oauth2/rfc6749/test_parameters.py +++ b/tests/oauth2/rfc6749/test_parameters.py @@ -103,6 +103,7 @@ class ParameterTests(TestCase): ' "refresh_token": "tGzv3JOkF0XG5Qx2TlKWIA",' ' "example_parameter": "example_value" }') + json_custom_error = '{ "error": "incorrect_client_credentials" }' json_error = '{ "error": "access_denied" }' json_notoken = ('{ "token_type": "example",' @@ -197,6 +198,9 @@ class ParameterTests(TestCase): self.assertRaises(ValueError, parse_implicit_response, self.implicit_wrongstate, state=self.state) + def test_custom_json_error(self): + self.assertRaises(CustomOAuth2Error, parse_token_response, self.json_custom_error) + def test_json_token_response(self): """Verify correct parameter parsing and validation for token responses. """ self.assertEqual(parse_token_response(self.json_response), self.json_dict) |
