def is_eligible_for(self, task_type):
        assert task_type, 'Empty parameter `task_type` passed'

        return task_type in chain(*(g.allowed_types for g in self.groups))
L{error.ConnectionClosed} is a superclass of L{error.ConnectionDone}.
dataset/ETHPy150Open mrgambal/vulyk/vulyk/models/user.py/User.is_eligible_for--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_error.py/TestStringification.test_connectionDoneSubclassOfConnectionClosed