def test_get_coords_location_with_filter_not_exists(self):
     coords = get_coords('Location', self.test_filter_not_exists,
                         'location_field')
     self.assertEqual(coords, {'type': 'FeatureCollection', 'features': []})
Beispiel #2
0
	def test_get_coords_location_with_filter_not_exists(self):
		coords = get_coords("Location", self.test_filter_not_exists, "location_field")
		self.assertEqual(coords, {"type": "FeatureCollection", "features": []})
 def test_get_coords_location_with_filter_exists(self):
     coords = get_coords('Location', self.test_filter_exists,
                         'location_field')
     self.assertEqual(self.test_location_dict['features'][0]['geometry'],
                      coords['features'][0]['geometry'])
Beispiel #4
0
	def test_get_coords_location_with_filter_exists(self):
		coords = get_coords("Location", self.test_filter_exists, "location_field")
		self.assertEqual(
			self.test_location_dict["features"][0]["geometry"], coords["features"][0]["geometry"]
		)