mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate.
This commit is contained in:
committed by
Mariusz Felisiak
parent
fe76944269
commit
bdf3e156b4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user