Example #1
0
def test_first_bracket():
    assert tax(1.00) == 0.15
    assert tax(2.00) == 0.30
Example #2
0
def test_tax(income, taxes):
    assert cantax.tax(income) == taxes
Example #3
0
def test_negative_value():
    assert tax(-100) == 0
Example #4
0
def test_fifth_bracket():
    assert tax(250000) == 61796.57
Example #5
0
def test_fourth_bracket():
    assert tax(150000) == 31211.57
Example #6
0
def test_third_bracket():
    assert tax(100000) == 18140.66
Example #7
0
def test_second_bracket():
    assert tax(50000) == 7630.85