def test_make_pretty_money_round_down(): """ Check that rounding works. """ input = 4.49 expected = '$4' actual = make_pretty_money(input) assert actual == expected
def test_make_pretty_money_commas(): """ Check that commas get inserted in values over $999. """ input = 4000 expected = '$4,000' actual = make_pretty_money(input) assert actual == expected