def setUp(self): self.app = db_app.app_db() r=self.app.root() # create three levels of entries level1 = 5 level2 = 5 level3_1 = 5 level3_2 = 5 c=r ids=[] n=0 user = User(u"test") for i in range(0,level1): o=db_app.createObj1(c) n+=1 ids.append(o.id) for i2 in range(0,level2): o2=db_app.createObj1(o) n+=1 for i3 in range(0,level3_1): db_app.createObj1(o2) n+=1 for i3 in range(0,level3_2): o4 = db_app.createObj2(o2) id = o4.id n+=1 self.ids = ids self.lastid = id
def setUp(self): self.app = db_app.app_db() r = self.app.root() # create three levels of entries level1 = 5 level2 = 5 level3_1 = 5 level3_2 = 5 c = r ids = [] n = 0 user = User(u"test") for i in range(0, level1): o = db_app.createObj1(c) n += 1 ids.append(o.id) for i2 in range(0, level2): o2 = db_app.createObj1(o) n += 1 for i3 in range(0, level3_1): db_app.createObj1(o2) n += 1 for i3 in range(0, level3_2): o4 = db_app.createObj2(o2) id = o4.id n += 1 self.ids = ids self.lastid = id
def setUp(self): self.app = db_app.app_db()
def setUp(self): self.app = db_app.app_db() self.request = testing.DummyRequest() self.request._LOCALE_ = "en" self.config = testing.setUp(request=self.request) self.remove=[]
def setUp(self): self.app = db_app.app_db() self.request = testing.DummyRequest() self.request._LOCALE_ = "en" self.config = testing.setUp(request=self.request) self.remove = []