Esempio n. 1
0
 def test_calculate_income_tax_for_250000_salary_rounded_to_the_nearest_dollar(
         self):
     emp = EmployeeDetails('Jane', 'Doe', 250000, 9)
     emp.income_tax()
     self.assertEqual(round(emp.income_tax()), 7171)
Esempio n. 2
0
 def test_calculate_income_tax_for_15000_salary_return_zero(self):
     emp = EmployeeDetails('Jane', 'Doe', 15000, 9)
     self.assertEqual(emp.income_tax(), 0)