예제 #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'))
예제 #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'))
예제 #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'))
예제 #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'))
예제 #5
0
 def test_splh_suggests_five_dollars_and_ten_on_100(self):
     assert pricing.suggested_payment_low_high(100) == (D('5'), D('10'))
예제 #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'))
예제 #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'))
예제 #8
0
 def test_splh_suggests_five_dollars_and_ten_on_100(self):
     assert pricing.suggested_payment_low_high(100) == (D('5'), D('10'))
예제 #9
0
 def suggested_payment_low_high(self):
     return pricing.suggested_payment_low_high(self.usage)
예제 #10
0
 def suggested_payment_low_high(self):
     return pricing.suggested_payment_low_high(self.usage)