Ejemplo n.º 1
0
 def test_splh_rounds_to_nearest_five_cents(self):
     assert pricing.suggested_payment_low_high(D('98.33')) == (D('4.90'), D('9.85'))
Ejemplo n.º 2
0
 def test_splh_suggests_fifty_cents_and_a_dollar_on_10_dollars(self):
     assert pricing.suggested_payment_low_high(10) == (D('0.5'), D('1'))
Ejemplo n.º 3
0
 def test_splh_suggests_five_and_ten_cents_on_1_dollar(self):
     assert pricing.suggested_payment_low_high(1) == (D('0.05'), D('0.1'))
Ejemplo n.º 4
0
 def test_splh_rounds_to_nearest_five_cents(self):
     assert pricing.suggested_payment_low_high(D('98.33')) == (D('4.90'), D('9.85'))
Ejemplo n.º 5
0
 def test_splh_suggests_five_dollars_and_ten_on_100(self):
     assert pricing.suggested_payment_low_high(100) == (D('5'), D('10'))
Ejemplo n.º 6
0
 def test_splh_suggests_five_and_ten_cents_on_1_dollar(self):
     assert pricing.suggested_payment_low_high(1) == (D('0.05'), D('0.1'))
Ejemplo n.º 7
0
 def test_splh_suggests_fifty_cents_and_a_dollar_on_10_dollars(self):
     assert pricing.suggested_payment_low_high(10) == (D('0.5'), D('1'))
Ejemplo n.º 8
0
 def test_splh_suggests_five_dollars_and_ten_on_100(self):
     assert pricing.suggested_payment_low_high(100) == (D('5'), D('10'))
Ejemplo n.º 9
0
 def suggested_payment_low_high(self):
     return pricing.suggested_payment_low_high(self.usage)
Ejemplo n.º 10
0
 def suggested_payment_low_high(self):
     return pricing.suggested_payment_low_high(self.usage)