diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index ff99cc4855..d778810480 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -160,6 +160,9 @@ class GISFunctionsTests(TestCase): for state in qs: self.assertTrue(state.poly.centroid.equals_exact(state.centroid, tol)) + with self.assertRaisesMessage(TypeError, "'Centroid' takes exactly 1 argument (2 given)"): + State.objects.annotate(centroid=functions.Centroid('poly', 'poly')) + @skipUnlessDBFeature("has_Difference_function") def test_difference(self): geom = Point(5, 23, srid=4326) |
