Example #1
0
 def test_calc_inss_range_1(self):
     paybill = PyBill(salary=1751.81)
     assert CalculateBill().calculate(paybill, INSS()) == 140.1448
Example #2
0
 def test_calc_irrf_range_1(self):
     paybill = PyBill(salary=1903.98)
     assert CalculateBill().calculate(paybill, IRRF()) == 0
Example #3
0
 def test_calc_irrf_range_2(self):
     paybill = PyBill(salary=2826.66)
     assert CalculateBill().calculate(paybill, IRRF()) == 0
Example #4
0
 def test_calc_ftgs_with_valid_salary(self):
     paybill = PyBill(salary=2000)
     assert CalculateBill().calculate(paybill, FGTS()) == 160
Example #5
0
 def test_calc_inss_with_zero_salary(self):
     paybill = PyBill(salary=0)
     assert CalculateBill().calculate(paybill, INSS()) == 0
Example #6
0
 def test_calc_inss_range_4(self):
     paybill = PyBill(salary=5839.46)
     assert CalculateBill().calculate(paybill, INSS()) == 642.34
Example #7
0
 def test_calc_inss_range_3(self):
     paybill = PyBill(salary=2919.73)
     assert CalculateBill().calculate(paybill, INSS()) == 321.1703
Example #8
0
 def test_calc_inss_range_2(self):
     paybill = PyBill(salary=1751.83)
     assert CalculateBill().calculate(paybill, INSS()) == 157.6647