diff options
author | 2012-03-01 23:23:15 +0100 | |
---|---|---|
committer | 2012-03-01 23:23:15 +0100 | |
commit | 6ce9f197f4681875a2595a5a8d86bd047f993a99 (patch) | |
tree | 0bd35db35b9fe09eccd7262fcc60b4ada5f07e44 /pygithub3/tests/utils/resources.py | |
parent | Merge branch 'docs' (diff) | |
download | python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.tar.xz python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.zip |
Python 2.6 compatibility
Diffstat (limited to 'pygithub3/tests/utils/resources.py')
-rw-r--r-- | pygithub3/tests/utils/resources.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pygithub3/tests/utils/resources.py b/pygithub3/tests/utils/resources.py index d9e4975..be9245b 100644 --- a/pygithub3/tests/utils/resources.py +++ b/pygithub3/tests/utils/resources.py @@ -1,7 +1,14 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- +from mock import Mock + from .base import Resource +from pygithub3.resources.base import json +from pygithub3.tests.utils.base import mock_json + +json.dumps = Mock(side_effect=mock_json) +json.loads = Mock(side_effect=mock_json) class Simple(Resource): |