diff options
author | Ad Timmering <awtimmering@gmail.com> | 2021-11-26 10:44:54 +0900 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-07 12:25:06 +0100 |
commit | bdf3e156b4b47d45b8e37823164b598afc533ce0 (patch) | |
tree | e27b8a05d1fe76478e06e5114a4f4aa86a5942ab /tests/gis_tests | |
parent | fe76944269c13d59f8bb3bc1cfff7ab6443777e4 (diff) | |
download | django-bdf3e156b4b47d45b8e37823164b598afc533ce0.tar.gz |
Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r-- | tests/gis_tests/geos_tests/test_geos.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/gis_tests/geos_tests/test_geos.py b/tests/gis_tests/geos_tests/test_geos.py index 27208e005d..08169f38ab 100644 --- a/tests/gis_tests/geos_tests/test_geos.py +++ b/tests/gis_tests/geos_tests/test_geos.py @@ -31,6 +31,13 @@ class GEOSTest(SimpleTestCase, TestDataMixin): if geom.hasz: self.assertEqual(g.ewkt, geom.wkt) + def test_wkt_invalid(self): + msg = 'String input unrecognized as WKT EWKT, and HEXEWKB.' + with self.assertRaisesMessage(ValueError, msg): + fromstr('POINT(٠٠١ ٠)') + with self.assertRaisesMessage(ValueError, msg): + fromstr('SRID=٧٥٨٣;POINT(100 0)') + def test_hex(self): "Testing HEX output." for g in self.geometries.hex_wkt: |