def test_geojson_layer_with_parameters_does_not_use_cache(self):
     self.login()
     response = self.client.get(TouristicEvent.get_layer_url())
     self.assertEqual(
         len(json.loads(response.content.decode())['features']), 31)
     response = self.client.get(TouristicEvent.get_layer_url() +
                                '?name=toto')
     self.assertEqual(
         len(json.loads(response.content.decode())['features']), 1)
 def test_geojson_layer_can_be_filtered(self):
     self.login()
     response = self.client.get(TouristicEvent.get_layer_url() +
                                '?name=toto')
     self.assertEqual(
         len(json.loads(response.content.decode())['features']), 1)
 def test_geojson_layer_returns_all_by_default(self):
     self.login()
     response = self.client.get(TouristicEvent.get_layer_url())
     self.assertEqual(
         len(json.loads(response.content.decode())['features']), 31)