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)
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)
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)
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)
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)
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)