diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2013-03-02 20:57:54 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2013-03-02 20:57:54 +0100 |
commit | 520865b6631d91c560a94ebabe476926ed9878e9 (patch) | |
tree | 4f8ed0d00a177a84b8e88229c8b7525c083f5b23 /tests/oauth2/draft25/test_client.py | |
parent | 4ca52e6c64a31bb245ab7c476ef84a01e5563f79 (diff) | |
download | oauthlib-520865b6631d91c560a94ebabe476926ed9878e9.tar.gz |
Wreaking havoc in the world of documentation
Diffstat (limited to 'tests/oauth2/draft25/test_client.py')
-rw-r--r-- | tests/oauth2/draft25/test_client.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/oauth2/draft25/test_client.py b/tests/oauth2/draft25/test_client.py index 2d3248d..47ed538 100644 --- a/tests/oauth2/draft25/test_client.py +++ b/tests/oauth2/draft25/test_client.py @@ -371,21 +371,21 @@ class PasswordCredentialsClientTest(TestCase): } def test_request_body(self): - client = PasswordCredentialsClient(self.client_id, self.username, - self.password) + client = PasswordCredentialsClient(self.client_id) # Basic, no extra arguments - body = client.prepare_request_body(body=self.body) + body = client.prepare_request_body(self.username, self.password, + body=self.body) self.assertFormBodyEqual(body, self.body_up) # With extra parameters, checked using length since order of # dict items is undefined - body = client.prepare_request_body(body=self.body, **self.kwargs) + body = client.prepare_request_body(self.username, self.password, + body=self.body, **self.kwargs) self.assertEqual(len(body), len(self.body_kwargs)) def test_parse_token_response(self): - client = PasswordCredentialsClient(self.client_id, self.username, - self.password) + client = PasswordCredentialsClient(self.client_id) # Parse code and state response = client.parse_request_body_response(self.token_json, scope=self.scope) |