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-10 20:16:27 +0100
commit2ce25481375904c9a0247e83ee3ef7b37ff53866 (patch)
tree9d05e5f557543b47637b7a7368511b7255cd640a /pygithub3/tests/utils/base.py
parentWIP on resources.users tests (diff)
downloadpython-github3-2ce25481375904c9a0247e83ee3ef7b37ff53866.tar.xz
python-github3-2ce25481375904c9a0247e83ee3ef7b37ff53866.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