'Testing GeometryField\'s handling of null (None) geometries.'

def test02_null(self):

    fld = forms.GeometryField()
    self.assertRaises(forms.ValidationError, fld.clean, None)
    fld = forms.GeometryField(required=False, null=False)
    self.assertRaises(forms.ValidationError, fld.clean, None)
    fld = forms.GeometryField(required=False)
    self.assertEqual(None, fld.clean(None))
