Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 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])
Пример #4
0
 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])
Пример #5
0
 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])