Added html.escape() in a test case in order to correctly handle affiliation names with ampersands.
- Legacy-Id: 18420
This commit is contained in:
parent
c98b6c8ad3
commit
da7c22f710
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue