Merge pull request #1939 from coreos-inc/unicode-search
Handle unicode in entity search
This commit is contained in:
commit
6b33503d8c
2 changed files with 14 additions and 0 deletions
|
@ -740,6 +740,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)
|
||||
|
||||
|
|
Reference in a new issue