def test_validate_absent_params_not():
    """
    Test the assertion that a method should not have parameters.
    Would be called in the context in which a method call does not
    provide parameters.
    """
    v = Validation(SCHEMA_DIR)
    with pytest.raises(InvalidParamsError) as ipe:
        v.validate_absent_params('echo')
    error_json = ipe.value.to_json()
    assert error_json['error']['message'] == 'Params must be provided for this method'
def test_validate_absent_params():
    v = Validation(SCHEMA_DIR)
    #  The 'validate' family of methods throws errors on validation
    # failures, otherwise doesn't return anything useful.
    v.validate_absent_params('noparams')
    assert True is True