-
-
Save jasongorman/55cd8f0831b389271febd4b618efd705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChartsDummy(object): | |
def send(self, song, sales): | |
pass | |
class DailySongsSalesTest(unittest.TestCase): | |
def test_sales_total_for_song(self): | |
song = 'How Do You Sleep: Sam Smith' | |
all_sales = [ | |
Sale(song), | |
Sale(song), | |
Sale(song), | |
Sale('X:X') | |
] | |
charts_dummy = ChartsDummy() | |
daily_sales = DailySongSales(all_sales, charts_dummy) | |
self.assertEqual(3, daily_sales.sales_of(song)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment