Added html.escape() in a test case in order to correctly handle affiliation names with ampersands.

- Legacy-Id: 18420
This commit is contained in:
Henrik Levkowetz 2020-08-26 16:04:50 +00:00
parent c98b6c8ad3
commit da7c22f710

View file

@ -3,6 +3,7 @@
import json
import html
import os
import shutil
import sys
@ -229,7 +230,7 @@ class CustomApiTests(TestCase):
text = file.read()
for p in people:
self.assertIn(p['name'], text)
self.assertIn(p['affiliation'], text)
self.assertIn(html.escape(p['affiliation']), text)
def test_person_export(self):
person = PersonFactory()