Beispiel #1
0
def test_pretty_errors_3():
    errors = {"id": ["one error"],
              "url": ["one error"]}

    assert '"id" - one error' in jenkins.pretty_errors(errors)
    assert '"url" - one error' in jenkins.pretty_errors(errors)
Beispiel #2
0
def test_pretty_errors_2():
    errors = {"id": ["one error", "two error"]}
    assert '"id" - one error, two error' == jenkins.pretty_errors(errors)