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

def test_null(self):

    fld = forms.GeometryField()
    with self.assertRaisesMessage(forms.ValidationError, 'No    geometry    value    provided.'):
        fld.clean(None)
    fld = forms.GeometryField(required=False)
    self.assertIsNone(fld.clean(None))
