def _get_json(self, source): cache.clear() req = RequestFactory().get('/') resp = views.mozid_data_view(req, source) eq_(resp['content-type'], 'application/json') eq_(resp['access-control-allow-origin'], '*') return json.loads(resp.content)
def _get_json(self, source): cache.clear() req = RequestFactory().get('/') resp = views.mozid_data_view(req, source) eq_(resp['content-type'], 'application/json') eq_(resp['access-control-allow-origin'], '*') return json.loads(resp.content)