          # Widget.get_context() returns expected name for geom_type.
          widget = BaseGeometryWidget(attrs={'geom_type': 'POLYGON'})
          context = widget.get_context('polygon', None, None)
          self.assertEqual(context['geom_type'], 'Polygon')
  
      def test_subwidgets(self):
          widget = forms.BaseGeometryWidget()
          self.assertEqual(
 
</s> remove         if (geomType === "Unknown" || geomType === "GeometryCollection") {
 </s> add         if (geomType === "Geometry" || geomType === "GeometryCollection") { </s> remove             'geom_type': gdal.OGRGeomType(self.attrs['geom_type']),
 </s> add             'geom_type': 'Geometry' if geom_type == 'Unknown' else geom_type,
        # Widget.get_context() returns 'Geometry' instead of 'Unknown'.
        widget = BaseGeometryWidget(attrs={'geom_type': 'GEOMETRY'})
        context = widget.get_context('geometry', None, None)
        self.assertEqual(context['geom_type'], 'Geometry')
          # Widget.get_context() returns expected name for geom_type.
          widget = BaseGeometryWidget(attrs={'geom_type': 'POLYGON'})
          context = widget.get_context('polygon', None, None)
          self.assertEqual(context['geom_type'], 'Polygon')
        # Widget.get_context() returns 'Geometry' instead of 'Unknown'.
        widget = BaseGeometryWidget(attrs={'geom_type': 'GEOMETRY'})
        context = widget.get_context('geometry', None, None)
        self.assertEqual(context['geom_type'], 'Geometry')
  
      def test_subwidgets(self):
          widget = forms.BaseGeometryWidget()
          self.assertEqual(
keep keep keep add keep keep keep keep
 Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to 'Geometry'. 
tests/gis_tests/test_geoforms.py