Add test for API change to entity search

This commit is contained in:
Joseph Schorr 2014-07-22 13:47:35 -04:00
parent 54ee94754e
commit 56fec63fcd

View file

@ -388,6 +388,16 @@ class TestGetMatchingEntities(ApiTestCase):
assert 'outsideorg' in names assert 'outsideorg' in names
assert 'owners' 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): class TestCreateOrganization(ApiTestCase):
def test_existinguser(self): def test_existinguser(self):