Exemple #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!"
Exemple #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!"
Exemple #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!"