Skip to content

Commit da7c22f

Browse files
committed
Added html.escape() in a test case in order to correctly handle affiliation names with ampersands.
- Legacy-Id: 18420
1 parent c98b6c8 commit da7c22f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ietf/api/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44

55
import json
6+
import html
67
import os
78
import shutil
89
import sys
@@ -229,7 +230,7 @@ def test_api_upload_bluesheet(self):
229230
text = file.read()
230231
for p in people:
231232
self.assertIn(p['name'], text)
232-
self.assertIn(p['affiliation'], text)
233+
self.assertIn(html.escape(p['affiliation']), text)
233234

234235
def test_person_export(self):
235236
person = PersonFactory()

0 commit comments

Comments
 (0)