def test_get(self): n = 3 for i in range(n): yield tenant.create(get_dummy_tenant_desc()) handler = self.request(role='admin') response = yield handler.get() self.assertEqual(len(response), self.population_of_tenants + n)
def test_get(self): n = 3 for i in range(n): yield tenant.create(get_dummy_tenant_desc()) handler = self.request(role='admin') response = yield handler.get() self.assertEqual(len(response), self.population_of_tenants + n)
def setUp(self): yield helpers.TestHandlerWithPopulatedDB.setUp(self) t = yield tenant.create(get_dummy_tenant_desc()) self.handler = self.request(t, role='admin') yield refresh_memory_variables([4])
def setUp(self): yield helpers.TestHandlerWithPopulatedDB.setUp(self) t = yield tenant.create(get_dummy_tenant_desc()) self.handler = self.request(t, role='admin') yield refresh_memory_variables([4])
def setUp(self): yield TenantTestEnv.setUp(self) t = yield tenant.create(get_dummy_tenant_desc()) self.handler = self.request(t, role='admin') yield refresh_memory_variables([4])