def setUp(self): self.app = fixtures.app() self.items_per_page = 10 page = PageDriver() for x in range(0,self.items_per_page + 2): Page(url='http://localhost/?%s' % (x,), owner=a_user, content='some content').put() print "REALLY THERE ARE %s pages" % (len(Page.all().fetch(100)),)
def tearDown(self): [p.delete() for p in Page.all()]
def setUp(self): from pagefeed.models import Page, Content super(CleanDBTest, self).setUp() db.delete(Page.all()) db.delete(Content.all())