def list(self): recs = MEntity.query_all(limit=16) kwd = { 'pager': '', } self.render('misc/entity/entity_list.html', imgs=recs, cfg=config.CMS_CFG, kwd=kwd, userinfo=self.userinfo)
def test_query_all(self): self.add_message() a = MEntity.query_all() tf = False for i in a: if i.uid == self.uid: tf = True assert tf self.tearDown()
def test_query_all(self): MEntity.query_all() assert True