示例#1
0
 def test_lowest_price_many_listings(self):
     """Verify that we return the lowest price even with many listings"""
     listings = steam_market.get_lowest_price(
         soup=get_soup_from_path(TEST_FILE_MANY_RESULTS))
     self.assertEqual('0,03€', listings)
示例#2
0
 def test_lowest_price_no_listings(self):
     """Verify that we return None when there are no listings"""
     listings = steam_market.get_lowest_price(
         soup=get_soup_from_path(TEST_FILE_NO_RESULTS))
     self.assertIsNone(listings)
示例#3
0
 def test_lowest_price(self):
     """Verify that we return the lowest price of multiple listings"""
     listings = steam_market.get_lowest_price(
         soup=get_soup_from_path(TEST_FILE_NORMAL_LISTING))
     self.assertEqual('11,59€', listings)
示例#4
0
 def test_lowest_price_many_listings(self):
     """Verify that we return the lowest price even with many listings"""
     listings = steam_market.get_lowest_price(soup=get_soup_from_path(TEST_FILE_MANY_RESULTS))
     self.assertEqual('0,03€', listings)
示例#5
0
 def test_lowest_price_no_listings(self):
     """Verify that we return None when there are no listings"""
     listings = steam_market.get_lowest_price(soup=get_soup_from_path(TEST_FILE_NO_RESULTS))
     self.assertIsNone(listings)
示例#6
0
 def test_lowest_price(self):
     """Verify that we return the lowest price of multiple listings"""
     listings = steam_market.get_lowest_price(soup=get_soup_from_path(TEST_FILE_NORMAL_LISTING))
     self.assertEqual('11,59€', listings)