Exemplo n.º 1
0
 def test_gaji_2_single(self):
     print('\nMonthly Salary: {:n}, Profile:{}'.format(
         self.gaji_2, self.tidak_kawin))
     print('Annual Taxable Income:{:n}'.format(
         get_annual_taxable_income(self.gaji_2, self.tidak_kawin)))
     print('Income Tax:{:n}'.format(
         calculate_tax_income(monthly_salary=self.gaji_2,
                              profile=self.tidak_kawin)))
     self.assertEqual(
         calculate_tax_income(monthly_salary=self.gaji_2,
                              profile=self.tidak_kawin), 31900000)
Exemplo n.º 2
0
 def test_gaji_1_anak_1(self):
     print('\nMonthly Salary: {:n}, Profile:{}'.format(
         self.gaji_1, self.kawin_anak_1))
     print('Annual Taxable Income:{:n}'.format(
         get_annual_taxable_income(self.gaji_1, self.kawin_anak_1)))
     print('Income Tax:{:n}'.format(
         calculate_tax_income(monthly_salary=self.gaji_1,
                              profile=self.kawin_anak_1)))
     self.assertEqual(
         calculate_tax_income(monthly_salary=self.gaji_1,
                              profile=self.kawin_anak_1), 750000)