コード例 #1
0
 def test_7(self):
     tax = TaxCaculator()
     tax.set_income(120000000)
     result = tax.calculate_income_1()
     assert result == 32150000
コード例 #2
0
 def test_6_boundary(self):
     tax = TaxCaculator()
     tax.set_income(80000000)
     result = tax.calculate_income_1()
     assert result == 18150000
コード例 #3
0
 def test_6(self):
     tax = TaxCaculator()
     tax.set_income(55000000)
     result = tax.calculate_income_1()
     assert result == 10650000
コード例 #4
0
 def test_5_boundary(self):
     tax = TaxCaculator()
     tax.set_income(52000000)
     result = tax.calculate_income_1()
     assert result == 9750000
コード例 #5
0
 def test_2(self):
     tax = TaxCaculator()
     tax.set_income(7000000)
     result = tax.calculate_income_1()
     assert result == 450000
コード例 #6
0
 def testTaxCalculatorWayOne(self, test_input, test_expected):
     tax = TaxCaculator()
     tax.set_income(test_input)
     result = tax.calculate_income_1()
     assert result == test_expected