def test_featurecollection(self):
     fc = {
         'type': 'FeatureCollection',
         'features': [self.feature, self.feature, self.feature],
     }
     gc = {
         'type': 'GeometryCollection',
         'geometries': [self.feature['geometry'], self.feature['geometry'], self.feature['geometry']],
     }
     geoj = _helpers.as_geojson_geometry(fc)
     self.assertIsInstance(geoj, geojson.GeometryCollection)
     self.assertEqual(geoj, gc)
 def test_feature(self):
     geoj = _helpers.as_geojson_geometry(self.feature)
     self.assertIsInstance(geoj, geojson.Polygon)
     self.assertEqual(geoj, self.feature["geometry"])