Exemplo n.º 1
0
def test_make_pretty_money_round_down():
    """
    Check that rounding works.
    """

    input = 4.49
    expected = '$4'
    actual = make_pretty_money(input)
    assert actual == expected
Exemplo n.º 2
0
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