def METHOD_NAME(api):
    '''
    test to raise the exception when value of sort direction is not as defined
    '''
    with pytest.raises(UnexpectedValueError):
        api.agents.list(sort=(('uuid', 'nope'),))