

def test_snapshot_task_manager_already_running(self):
    self.env.create_task(name='dump')
    tm = DumpTaskManager()
    self.assertRaises(errors.TaskAlreadyRunning, tm.execute)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_logs_handlers.py TestLogs.test_snapshot_task_manager_already_running/original