summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Spitsin <tn@0x746e.org.ua>2014-04-15 13:17:45 +0300
committerKirill Spitsin <tn@0x746e.org.ua>2014-04-15 13:17:45 +0300
commit235a1909b990c1e7bc82846a6efccde67b638c53 (patch)
treeb24d6bc5ed691d127349eb28b22fe4918c7479ce
parente658be77687ec7bb0b5a230f16c8595893c822ae (diff)
downloadoauthlib-235a1909b990c1e7bc82846a6efccde67b638c53.tar.gz
Unshadowed a test.
There were two test methods named `test_create_authorization_response` in `tests.oauth1.rfc5849.endpoints.test_authorization.ResourceEndpointTest`, so second one was shadowing the first. Also renamed the test case.
-rw-r--r--tests/oauth1/rfc5849/endpoints/test_authorization.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/oauth1/rfc5849/endpoints/test_authorization.py b/tests/oauth1/rfc5849/endpoints/test_authorization.py
index d6b1a05..e7ddceb 100644
--- a/tests/oauth1/rfc5849/endpoints/test_authorization.py
+++ b/tests/oauth1/rfc5849/endpoints/test_authorization.py
@@ -8,7 +8,7 @@ from oauthlib.oauth1.rfc5849 import errors
from oauthlib.oauth1.rfc5849.endpoints import AuthorizationEndpoint
-class ResourceEndpointTest(TestCase):
+class AuthorizationEndpointTest(TestCase):
def setUp(self):
self.validator = MagicMock(wraps=RequestValidator())
@@ -42,10 +42,11 @@ class ResourceEndpointTest(TestCase):
h, b, s = self.endpoint.create_authorization_response(self.uri)
self.assertEqual(s, 302)
self.assertIn('Location', h)
+ location = h['Location']
self.assertTrue(location.startswith('https://c.b/cb'))
self.assertIn('oauth_verifier', location)
- def test_create_authorization_response(self):
+ def test_create_authorization_response_oob(self):
self.validator.get_redirect_uri.return_value = 'oob'
h, b, s = self.endpoint.create_authorization_response(self.uri)
self.assertEqual(s, 200)