예제 #1
0
def test_assert_well_formed_check_result_fails_for_wrong_result(has_perfdata, result, mocker):
    mock_check = mocker.Mock()
    mock_check.has_perfdata = has_perfdata

    with pytest.raises(AssertionError):
        assertions.assert_well_formed_check_result(mock_check, result)
예제 #2
0
def test_assert_well_formed_check_result_lives_for_correct_result(has_perfdata, result, mocker):
    mock_check = mocker.Mock()
    mock_check.has_perfdata = has_perfdata

    assertions.assert_well_formed_check_result(mock_check, result)