コード例 #1
0
ファイル: tests.py プロジェクト: swatisaoji1/eventbrite-demo
	def test_home_has_categories(self):
		request= HttpRequest()
		response = home_page(request)
		self.assertIn('<div class="checkbox">', response.content.decode('utf8'))
コード例 #2
0
ファイル: tests.py プロジェクト: swatisaoji1/eventbrite-demo
	def test_home_page_html(self):
		request= HttpRequest()
		response = home_page(request)
		self.assertIn('<title>EventBrite Events</title>', response.content.decode('utf8'))