Esempio n. 1
0
 def test_full_list(self):
     assert(calc_total([{'unit_price': 1}, {'unit_price': 2}]) == '3.00')
Esempio n. 2
0
 def test_full_list_with_empty_dict(self):
     assert(calc_total([{'unit_price': 1}, {'unit_price': 2}, {}]) == '3.00')
Esempio n. 3
0
 def test_empty_list(self):
     assert(calc_total([]) == '0.00')