def METHOD_NAME(api):
    '''
    test to get the agents list
    '''
    count = 0
    agents = api.agents.list()
    for agent in agents:
        count += 1
        check(agent, 'distro', str)
        check(agent, 'id', int)
        check(agent, 'ip', str)
        check(agent, 'linked_on', int)
        check(agent, 'name', str)
        check(agent, 'platform', str)
        check(agent, 'status', str)
        check(agent, 'uuid', 'uuid')
    assert count == agents.total