def test_PriceInComment_shouldReturnEmptyList_When_PriceUnderTenDollars( self): comment = "9/16 $9.99 $8 ewrgretger" self.assertEqual(["$9.99"], redditScraper.getPriceInComment(comment))
def test_PriceInComment_shouldReturnPriceList_When_PriceContainsDecimal( self): comment = "9/16 $300.00 ewrgretger" self.assertEqual(["$300.00"], redditScraper.getPriceInComment(comment))
def test_PriceInComment_shouldReturnPriceList_When_PriceContainsPutAndCallCapital( self): comment = "9/16 $300P 300.50C ewrgretger" self.assertEqual(["$300P", "300.50C"], redditScraper.getPriceInComment(comment))
def test_PriceInComment_shouldReturnEmptyList_When_PriceAtFrontOfComment( self): comment = "300 9/16 ewrgretger" self.assertEqual(["300"], redditScraper.getPriceInComment(comment))