Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created October 4, 2019 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/55cd8f0831b389271febd4b618efd705 to your computer and use it in GitHub Desktop.
Save jasongorman/55cd8f0831b389271febd4b618efd705 to your computer and use it in GitHub Desktop.
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