Commit ff9d035 1 parent 653e137 commit ff9d035 Copy full SHA for ff9d035
File tree 1 file changed +3
-2
lines changed
tests/django_restframework_gis_tests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import json
6
6
import pickle
7
+ from html import escape
7
8
8
9
from django .contrib .gis .geos import GEOSGeometry , Point
9
10
from django .core .exceptions import ImproperlyConfigured
@@ -528,8 +529,8 @@ def test_geojson_HTML_widget_value(self):
528
529
self .geojson_location_list_url , headers = {"accept" : 'text/html' }
529
530
)
530
531
self .assertContains (response , '<textarea name="geometry"' )
531
- self .assertContains (response , '"type": "Point"' )
532
- self .assertContains (response , '"coordinates": [' )
532
+ self .assertContains (response , escape ( '"type": "Point"' ) )
533
+ self .assertContains (response , escape ( '"coordinates": [' ) )
533
534
534
535
def test_patch_geojson_location (self ):
535
536
location = Location .objects .create (
You can’t perform that action at this time.
0 commit comments