From 2ce25481375904c9a0247e83ee3ef7b37ff53866 Mon Sep 17 00:00:00 2001 From: David Medina Date: Fri, 10 Feb 2012 20:16:27 +0100 Subject: Fix asserts bugs in client. Fixing something that is there to check what never happens... But tests doesn't lie, so funny :P --- pygithub3/tests/utils/base.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pygithub3/tests/utils/base.py') 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 -- cgit v1.2.3-59-g8ed1b