Exemple #1
0
 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)
Exemple #2
0
 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)