コード例 #1
0
 def test_amount_of_listings_many_listings(self):
     """Verify that we correctly count the amount of listings with multi-page results"""
     listings = steam_market.get_total_amount_of_listings(
         soup=get_soup_from_path(TEST_FILE_MANY_RESULTS))
     self.assertEqual(164720, listings)
コード例 #2
0
 def test_amount_of_listings_no_listings(self):
     """Verify that we correctly count the amount of listings when there are no results"""
     listings = steam_market.get_total_amount_of_listings(
         soup=get_soup_from_path(TEST_FILE_NO_RESULTS))
     self.assertEqual(0, listings)
コード例 #3
0
 def test_amount_of_listings(self):
     """Verify that we correctly count the amount of listings"""
     listings = steam_market.get_total_amount_of_listings(
         soup=get_soup_from_path(TEST_FILE_NORMAL_LISTING))
     self.assertEqual(10, listings)
コード例 #4
0
 def test_amount_of_listings_many_listings(self):
     """Verify that we correctly count the amount of listings with multi-page results"""
     listings = steam_market.get_total_amount_of_listings(soup=get_soup_from_path(TEST_FILE_MANY_RESULTS))
     self.assertEqual(164720, listings)
コード例 #5
0
 def test_amount_of_listings_no_listings(self):
     """Verify that we correctly count the amount of listings when there are no results"""
     listings = steam_market.get_total_amount_of_listings(soup=get_soup_from_path(TEST_FILE_NO_RESULTS))
     self.assertEqual(0, listings)
コード例 #6
0
 def test_amount_of_listings(self):
     """Verify that we correctly count the amount of listings"""
     listings = steam_market.get_total_amount_of_listings(soup=get_soup_from_path(TEST_FILE_NORMAL_LISTING))
     self.assertEqual(10, listings)