Skip to content

Commit 9bfb488

Browse files
committed
After having test_duplicate_person_name() fail for a non-ascii name, changed the test to always supply a non-ascii name.
- Legacy-Id: 16180
1 parent 5def83e commit 9bfb488

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/person/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def test_name_methods(self):
8787

8888
def test_duplicate_person_name(self):
8989
empty_outbox()
90-
Person.objects.create(name="Duplicate Test")
91-
Person.objects.create(name="Duplicate Test")
92-
self.assertTrue("possible duplicate" in outbox[0]["Subject"].lower())
90+
p = PersonFactory(name="Föö Bär")
91+
PersonFactory(name=p.name)
92+
self.assertTrue("possible duplicate" in unicode(outbox[0]["Subject"]).lower())
9393

9494
def test_merge(self):
9595
url = urlreverse("ietf.person.views.merge")

0 commit comments

Comments
 (0)