def test_sp_rounds_to_nearest_five_cents(self): assert pricing.suggested_payment(D('98.33')) == D('4.90')
def test_sp_suggests_fifty_cents_on_10_dollars(self): assert pricing.suggested_payment(10) == D('0.5')
def test_sp_suggests_five_cents_on_1_dollar(self): assert pricing.suggested_payment(1) == D('0.05')
def test_sp_suggests_five_dollars_on_100(self): assert pricing.suggested_payment(100) == D('5')
def suggested_payment(self): return pricing.suggested_payment(self.usage)