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