summaryrefslogtreecommitdiff
path: root/tests/oauth2/rfc6749/clients
diff options
context:
space:
mode:
authormyyang <ymy1019@gmail.com>2015-07-02 11:13:28 +0800
committermyyang <ymy1019@gmail.com>2015-07-02 11:13:28 +0800
commit9940cd2a1403341e97bda42a88ae2c0213027c4f (patch)
tree2aaad6177cf3c16b18336feed5887289ec191ae8 /tests/oauth2/rfc6749/clients
parentf2402efa2a29631a3f67df9157fdf9d746861406 (diff)
downloadoauthlib-9940cd2a1403341e97bda42a88ae2c0213027c4f.tar.gz
Use assertFormBodyEqual instead
Diffstat (limited to 'tests/oauth2/rfc6749/clients')
-rw-r--r--tests/oauth2/rfc6749/clients/test_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/oauth2/rfc6749/clients/test_base.py b/tests/oauth2/rfc6749/clients/test_base.py
index fd85d7b..800dc6e 100644
--- a/tests/oauth2/rfc6749/clients/test_base.py
+++ b/tests/oauth2/rfc6749/clients/test_base.py
@@ -217,7 +217,7 @@ class ClientTest(TestCase):
u, h, b = client.prepare_refresh_token_request(url, token)
self.assertEqual(u, url)
self.assertEqual(h, {'Content-Type': 'application/x-www-form-urlencoded'})
- self.assertURLEqual(b, 'grant_type=refresh_token&refresh_token=%s' % token)
+ self.assertFormBodyEqual(b, 'grant_type=refresh_token&refresh_token=%s' % token)
# Non-HTTPS revocation endpoint
self.assertRaises(InsecureTransportError,
@@ -228,11 +228,11 @@ class ClientTest(TestCase):
u, h, b = client.prepare_refresh_token_request(url, token, scope=scope)
self.assertEqual(u, url)
self.assertEqual(h, {'Content-Type': 'application/x-www-form-urlencoded'})
- self.assertURLEqual(b, 'grant_type=refresh_token&scope=%s&refresh_token=%s' % (scope, token))
+ self.assertFormBodyEqual(b, 'grant_type=refresh_token&scope=%s&refresh_token=%s' % (scope, token))
# provide scope while init
client = Client(self.client_id, scope=scope)
u, h, b = client.prepare_refresh_token_request(url, token, scope=scope)
self.assertEqual(u, url)
self.assertEqual(h, {'Content-Type': 'application/x-www-form-urlencoded'})
- self.assertURLEqual(b, 'grant_type=refresh_token&scope=%s&refresh_token=%s' % (scope, token))
+ self.assertFormBodyEqual(b, 'grant_type=refresh_token&scope=%s&refresh_token=%s' % (scope, token))