示例#1
0
	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)),)
示例#2
0
	def tearDown(self):
		[p.delete() for p in Page.all()]
示例#3
0
	def setUp(self):
		from pagefeed.models import Page, Content
		super(CleanDBTest, self).setUp()
		db.delete(Page.all())
		db.delete(Content.all())