'Makes an Packet API call to the list of devices in a particular
project'

def get_devices_by_project(self, project):

    params = {'per_page': self.items_per_page}
    try:
        manager = self.connect()
        devices = manager.list_devices(project_id=project.id, params=params)
        for device in devices:
            self.add_device(device, project)
    except Exception as e:
        traceback.print_exc()
        self.fail_with_error(e, 'getting    Packet    devices')
