コード例 #1
0
ファイル: Scrape_test.py プロジェクト: sniemeyer13/HappyApp
	def test_lastTime(self):
                day = "friday"
                scrapeDay = testScrape(day)
                self.assertEqual(scrapeDay[5], 15.0, "Start time for Friday Last Restaurant is Incorrect")
                self.assertEqual(scrapeDay[6], 18.0, "End time for Friday Last Restaurant is Incorrect")
コード例 #2
0
ファイル: Scrape_test.py プロジェクト: sniemeyer13/HappyApp
	def test_firstTime(self):
		day = "thursday"
		scrapeDay = testScrape(day)
		self.assertEqual(scrapeDay[3], 16.0, "Start time for Thursday First Restaurant is Incorrect")
		self.assertEqual(scrapeDay[4], 18.0, "End time for Thursday First Restaurant is Incorrect")
コード例 #3
0
ファイル: Scrape_test.py プロジェクト: sniemeyer13/HappyApp
	def test_firstRest(self):
		day = "tuesday"
		scrapeDay = testScrape(day)
		self.assertEqual(scrapeDay[1], "Boulder Chophouse & Tavern", "First Restraunt from Tuesday is Incorrect")
コード例 #4
0
ファイル: Scrape_test.py プロジェクト: sniemeyer13/HappyApp
	def test_lastRest(self):
		day = "wednesday"
		scrapeDay = testScrape(day)
		self.assertEqual(scrapeDay[2], "Zolo", "Last Restraunt from Wednesday is Incorrect")
コード例 #5
0
ファイル: Scrape_test.py プロジェクト: sniemeyer13/HappyApp
	def test_init(self):
		day = "monday"
		scrapeDay = testScrape(day)
		self.assertEqual(scrapeDay[0], day, "Scrape Day is Incorrect, should access Monday")