aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/services/test_users.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-10 20:16:27 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-11 21:44:09 +0100
commit680041b09231b4280d5ca4410f0fea33b7639215 (patch)
tree3cb40e5f26caf0930199a40205753c881118b18e /pygithub3/tests/services/test_users.py
parentWIP on resources.users tests (diff)
downloadpython-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.py5
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={})