summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjonathan vanasco <jonathan@2xlp.com>2018-09-14 19:08:56 -0400
committerjonathan vanasco <jonathan@2xlp.com>2018-09-14 19:08:56 -0400
commitc8fcbf87ca38faa4dfbe56d0609a4ce15c2d7aca (patch)
treef7a46fbdbb4565857efd8973f7915a5df8f67fc5 /tests
parente4658e048ac2b2126b56c41e0494cd17607ea190 (diff)
downloadoauthlib-c8fcbf87ca38faa4dfbe56d0609a4ce15c2d7aca.tar.gz
standardized some test values
integrated against requests_oauthlib idea
Diffstat (limited to 'tests')
-rw-r--r--tests/oauth2/rfc6749/clients/test_legacy_application.py4
-rw-r--r--tests/oauth2/rfc6749/clients/test_web_application.py12
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/oauth2/rfc6749/clients/test_legacy_application.py b/tests/oauth2/rfc6749/clients/test_legacy_application.py
index 3f97c02..1e11112 100644
--- a/tests/oauth2/rfc6749/clients/test_legacy_application.py
+++ b/tests/oauth2/rfc6749/clients/test_legacy_application.py
@@ -21,8 +21,8 @@ class LegacyApplicationClientTest(TestCase):
"require": "extra arguments"
}
- username = "foo"
- password = "bar"
+ username = "user_username"
+ password = "user_password"
body = "not=empty"
body_up = "not=empty&grant_type=password&username=%s&password=%s" % (username, password)
diff --git a/tests/oauth2/rfc6749/clients/test_web_application.py b/tests/oauth2/rfc6749/clients/test_web_application.py
index 702fcf2..9144659 100644
--- a/tests/oauth2/rfc6749/clients/test_web_application.py
+++ b/tests/oauth2/rfc6749/clients/test_web_application.py
@@ -204,13 +204,13 @@ class WebApplicationClientTest(TestCase):
# scenario 3, Include client_id and client_secret in the body (RFC alternative solution)
# the order of kwargs being appended is not guaranteed. for brevity, check the 2 permutations instead of sorting
- r3 = client.prepare_request_body(client_secret='secret')
- self.assertIn(r3, ('grant_type=authorization_code&client_secret=secret&client_id=someclientid',
- 'grant_type=authorization_code&client_id=someclientid&client_secret=secret',)
+ r3 = client.prepare_request_body(client_secret='someclientsecret')
+ self.assertIn(r3, ('grant_type=authorization_code&client_secret=someclientsecret&client_id=someclientid',
+ 'grant_type=authorization_code&client_id=someclientid&client_secret=someclientsecret',)
)
- r3b = client.prepare_request_body(include_client_id=True, client_secret='secret')
- self.assertIn(r3b, ('grant_type=authorization_code&client_secret=secret&client_id=someclientid',
- 'grant_type=authorization_code&client_id=someclientid&client_secret=secret',)
+ r3b = client.prepare_request_body(include_client_id=True, client_secret='someclientsecret')
+ self.assertIn(r3b, ('grant_type=authorization_code&client_secret=someclientsecret&client_id=someclientid',
+ 'grant_type=authorization_code&client_id=someclientid&client_secret=someclientsecret',)
)
# scenario Warnings