def __init__(self, afm_url, default_wait=60, max_tasks=2, name='Python Agent 1.0', agent_uuid=None): self.afm = Communicator(afm_url) self.max_tasks = max_tasks self.default_wait = default_wait self.name = name self.uuid = agent_uuid if agent_uuid else str(uuid.uuid1()) self._run = True
def setUp(self): self.communicator = Communicator('https://localhost')