Handle unicode in entity search

Fixes #1934
This commit is contained in:
Joseph Schorr 2016-10-04 12:35:04 +03:00
parent f3091c6424
commit ff0a292548
2 changed files with 14 additions and 0 deletions

View file

@ -738,6 +738,14 @@ class TestConductSearch(ApiTestCase):
class TestGetMatchingEntities(ApiTestCase):
def test_unicode_search(self):
self.login(ADMIN_ACCESS_USER)
json = self.getJsonResponse(EntitySearch,
params=dict(prefix='北京市', namespace=ORGANIZATION,
includeTeams='true'))
self.assertEquals(0, len(json['results']))
def test_notinorg(self):
self.login(NO_ACCESS_USER)