def test_avg_time_between_bills(self): bills = read_bills() self.assertEqual(439.0, avg_time_between_bills(bills))
def test_display_bill_count(self): bills = read_bills() self.assertEqual(43, display_bill_count(bills))
def test_display_sortedbydate(self): bills = read_bills() bills1 = display_sortedbydate(bills) self.assertEqual('Tesco Mobile', bills1['Company'].values[0]) self.assertEqual('Karen Byrne', bills1['Account Name'].values[10])
def test_display_unique_companies(self): bills = read_bills() self.assertEqual(10, display_unique_companies(bills))
def test_read_bills(self): bills = read_bills() self.assertEqual(43, len(bills))