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/utils/base.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/utils/base.py')
-rw-r--r-- | pygithub3/tests/utils/base.py | 6 |
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 |