diff --git a/pillar/tests/__init__.py b/pillar/tests/__init__.py index 9d7e3418..1e902259 100644 --- a/pillar/tests/__init__.py +++ b/pillar/tests/__init__.py @@ -456,12 +456,13 @@ class AbstractPillarTest(TestMinimal): expected_status, resp.status_code, resp.data )) - def json(): + def get_json(): if resp.mimetype != 'application/json': raise TypeError('Unable to load JSON from mimetype %r' % resp.mimetype) return mod_json.loads(resp.data) - resp.json = json + resp.json = get_json + resp.get_json = get_json return resp