def test_shutdown(self):
        with mock.patch.object(self.gf, '_queue') as mock_queue:
            self.gf.shutdown('event')
            mock_queue.put.assert_called_once_with(self.gf._quit_object)
Start the qt4 event loop in a consistent manner.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/test_graphite.py/TestGraphite.test_shutdown--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/util/guisupport.py/start_event_loop_qt4