

def test_ex_cancel_target_job(self):
    target = self.driver.list_targets()[0]
    response = self.driver.ex_get_backup_details_for_target(target)
    client = response.clients[0]
    self.assertTrue(isinstance(client.running_job, BackupTargetJob))
    success = client.running_job.cancel()
    self.assertTrue(success)

dataset/ETHPy150Open apache/libcloud/libcloud/test/backup/test_dimensiondata.py DimensionDataTests.test_ex_cancel_target_job/original