aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/utils/base.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/utils/base.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/utils/base.py')
-rw-r--r--pygithub3/tests/utils/base.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pygithub3/tests/utils/base.py b/pygithub3/tests/utils/base.py
index cda2b2c..571d8ac 100644
--- a/pygithub3/tests/utils/base.py
+++ b/pygithub3/tests/utils/base.py
@@ -11,6 +11,12 @@ def mock_json(content):
return content
+def mock_response(status_code=200, content={}):
+ response = Mock(name='response')
+ response.status_code = status_code
+ response.content = content
+ return response
+
class DummyResource(Resource):
pass