Exemplo n.º 1
0
def test_valid_price_4():
    input_price = ".99"
    expected_output = [True, "0.99"]
    assert validate_price(input_price)[0] == expected_output[0], "Test Failed!"
Exemplo n.º 2
0
def test_invalid_price_4():
    input_price = "0"
    expected_output = [False, "0"]
    assert validate_price(input_price)[0] == expected_output[0], "Test Failed!"
Exemplo n.º 3
0
def test_valid_price_2():
    input_price = "2000"
    expected_output = [True, "2000"]
    assert validate_price(input_price)[0] == expected_output[0], "Test Failed!"