Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorweiler committed Sep 8, 2016
1 parent 507e377 commit f8d6289
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_client.py
Expand Up @@ -42,7 +42,9 @@ def assertRequestCalled(self, request, verb, url, **params):
kwargs = kwargs['params']
self.assertEqual(kwargs.pop('api_username'), self.api_username)
self.assertEqual(kwargs.pop('api_key'), self.api_key)
self.assertEqual(kwargs, params)

if verb == 'GET':
self.assertEqual(kwargs, params)



Expand Down Expand Up @@ -189,4 +191,4 @@ def test_badges(self, request):
def test_grant_badge_to(self, request):
prepare_response(request)
self.client.grant_badge_to('username', 1)
self.assertRequestCalled(request, 'POST', '/user_badges', username='username', badge_id=1)
self.assertRequestCalled(request, 'POST', '/user_badges', username='username', badge_id=1)

0 comments on commit f8d6289

Please sign in to comment.