コード例 #1
0
	def setUp(self):
		testdb.setup_db(self)

		#Add tags to the 1st tab
		self.tags = ["india", "technology", "world", "international", "politics"]
		for tag in self.tags:
			self.tabs[0].tags.add(tag)
コード例 #2
0
	def setUp(self):
		testdb.setup_db(self)

		#Create test article
		self.article = Article.objects.create(
			pub_date=datetime.now(tzlocal()), 
			link='http://ibnlive.in.com/news/modi-faces-flak-over-conditions-of-gujarati-muslims-2002-riots/402882-3-238.html',
			source=self.sources[0],
			heading='Sample Article',
			summary='Some stuff in the article',
			body='Some stuff in the article',
		)
コード例 #3
0
	def setUp(self):
		testdb.setup_db(self)
		cache.clear()
コード例 #4
0
	def setUp(self):
		testdb.setup_db(self)
		self.tabs[2].add_source(self.sources[0])