コード例 #1
0
def test_restart_required_negative():
    input = ANY_CLI_OUTPUT
    result = parsers.restart_required(input)

    assert (not result)
コード例 #2
0
def test_restart_required_with_output_none():
    result = None
    result = parsers.restart_required(result)

    assert (result is False)
コード例 #3
0
def test_restart_required_with_string3():
    input = ANY_CLI_OUTPUT + "\n" + RESTART_NEEDED_STRING3
    result = parsers.restart_required(input)

    assert (result)