diff options
author | 2012-02-10 20:16:27 +0100 | |
---|---|---|
committer | 2012-02-11 21:44:09 +0100 | |
commit | 680041b09231b4280d5ca4410f0fea33b7639215 (patch) | |
tree | 3cb40e5f26caf0930199a40205753c881118b18e /pygithub3/tests/services/test_users.py | |
parent | WIP on resources.users tests (diff) | |
download | python-github3-680041b09231b4280d5ca4410f0fea33b7639215.tar.xz python-github3-680041b09231b4280d5ca4410f0fea33b7639215.zip |
Fix asserts bugs in client.
Fixing something that is there to check what never happens...
But tests doesn't lie, so funny :P
Diffstat (limited to 'pygithub3/tests/services/test_users.py')
-rw-r--r-- | pygithub3/tests/services/test_users.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pygithub3/tests/services/test_users.py b/pygithub3/tests/services/test_users.py index f2daa36..9c333ec 100644 --- a/pygithub3/tests/services/test_users.py +++ b/pygithub3/tests/services/test_users.py @@ -8,6 +8,7 @@ from mock import patch, Mock from pygithub3.services.users import User from pygithub3.resources.base import json +from pygithub3.tests.utils.base import mock_response from pygithub3.tests.utils.services import _, mock_json json.dumps = Mock(side_effect=mock_json) @@ -20,8 +21,6 @@ class TestUserService(TestCase): self.us = User() def test_GET_without_user(self, request_method): - response = Mock(name='response') - response.content = {'dummy': 'dummy'} - request_method.return_value = response + request_method.return_value = mock_response() self.us.get() request_method.assert_called_with('get', _('user'), params={}) |