Exemplo n.º 1
0
def test_get_assertion_message_with_details():
    assertion_msg = "q1=1 != q2=1"
    expected = (
        "--------------- DETAILS ---------------\n"
        "{}\n"
        "----------------------------------------\n".format(assertion_msg))
    assert matchers.get_assertion_message(assertion_msg) == expected
Exemplo n.º 2
0
def test_get_assertion_message_with_details():
    assertion_msg = "q1=1 != q2=1"
    expected = assertion_msg
    assert matchers.get_assertion_message(assertion_msg) == expected
Exemplo n.º 3
0
def test_get_assertion_message():
    assert matchers.get_assertion_message(None) is None
    assert matchers.get_assertion_message("") == ""