def test_quitConcurrentWithWorkHappening(self):
        self.team.do(list)
        originalSet = self.team._quit.set
        def performWorkConcurrently():
            originalSet()
            self.performAllOutstandingWork()
        self.team._quit.set = performWorkConcurrently
        self.team.quit()
        self.assertRaises(AlreadyQuit, self.team.quit)
        self.assertRaises(AlreadyQuit, self.team.do, list)
Called when the visible trait is changed on an action.
dataset/ETHPy150Open twisted/twisted/twisted/_threads/test/test_team.py/TeamTests.test_quitConcurrentWithWorkHappening--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_MenuItem._on_action_visible_changed