

def test_deregister_any_handler_empty_listeners(self):
    a_task = MyTask()
    self.assertEqual(0, len(a_task.notifier))
    self.assertFalse(a_task.notifier.deregister_event(task.EVENT_UPDATE_PROGRESS))
    self.assertEqual(0, len(a_task.notifier))

dataset/ETHPy150Open openstack/taskflow/taskflow/tests/unit/test_task.py TaskTest.test_deregister_any_handler_empty_listeners/original