diff options
author | 2012-02-10 20:16:27 +0100 | |
---|---|---|
committer | 2012-02-10 20:16:27 +0100 | |
commit | 2ce25481375904c9a0247e83ee3ef7b37ff53866 (patch) | |
tree | 9d05e5f557543b47637b7a7368511b7255cd640a /pygithub3/tests/utils/base.py | |
parent | WIP on resources.users tests (diff) | |
download | python-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.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 |