diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoadmin_deprecated/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gis_tests/geoadmin_deprecated/tests.py b/tests/gis_tests/geoadmin_deprecated/tests.py index dd3e3af069..d6bea7a690 100644 --- a/tests/gis_tests/geoadmin_deprecated/tests.py +++ b/tests/gis_tests/geoadmin_deprecated/tests.py @@ -125,3 +125,8 @@ class DeprecationTests(SimpleTestCase): DeprecatedOSMGeoAdmin(City, site) with self.assertRaisesMessage(RemovedInDjango50Warning, msg): DeprecatedGeoModelAdmin(City, site) + + def test_openlayerswidget_warning(self): + msg = "django.contrib.gis.admin.OpenLayersWidget is deprecated." + with self.assertRaisesMessage(RemovedInDjango50Warning, msg): + admin.OpenLayersWidget() |
