summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2014-04-18 15:42:59 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2014-04-18 15:42:59 +0100
commit029c7f2ab19a5dc838dc783abcdf52c7fa2bb337 (patch)
tree431ecbb4449e6e16156e4bd2ff633b23218df0ac
parent233cb685c6ae4820ad7c63c9611753139c50fa19 (diff)
parent235a1909b990c1e7bc82846a6efccde67b638c53 (diff)
downloadoauthlib-029c7f2ab19a5dc838dc783abcdf52c7fa2bb337.tar.gz
Merge pull request #244 from x746e/master
Unshadowed a test
-rw-r--r--tests/oauth1/rfc5849/endpoints/test_authorization.py5
-rw-r--r--tests/oauth1/rfc5849/test_utils.py2
2 files changed, 4 insertions, 3 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)
diff --git a/tests/oauth1/rfc5849/test_utils.py b/tests/oauth1/rfc5849/test_utils.py
index 41d1e2e..4e24889 100644
--- a/tests/oauth1/rfc5849/test_utils.py
+++ b/tests/oauth1/rfc5849/test_utils.py
@@ -51,7 +51,7 @@ class UtilsTests(TestCase):
def test_filter_params(self):
- # The following is an isolated test functon used to test the filter_params decorator.
+ # The following is an isolated test function used to test the filter_params decorator.
@filter_params
def special_test_function(params, realm=None):
""" I am a special test function """