Add test for API change to entity search
This commit is contained in:
parent
54ee94754e
commit
56fec63fcd
1 changed files with 10 additions and 0 deletions
|
@ -388,6 +388,16 @@ class TestGetMatchingEntities(ApiTestCase):
|
|||
assert 'outsideorg' in names
|
||||
assert 'owners' in names
|
||||
|
||||
def test_inorg_withorgs(self):
|
||||
self.login(ADMIN_ACCESS_USER)
|
||||
|
||||
json = self.getJsonResponse(EntitySearch,
|
||||
params=dict(prefix=ORGANIZATION[0], namespace=ORGANIZATION,
|
||||
includeOrgs='true'))
|
||||
|
||||
names = set([r['name'] for r in json['results']])
|
||||
assert ORGANIZATION in names
|
||||
|
||||
|
||||
class TestCreateOrganization(ApiTestCase):
|
||||
def test_existinguser(self):
|
||||
|
|
Reference in a new issue