'Test the shutdown.'

def test_shutdown(self):

    with mock.patch.object(self.gf, '_queue') as mock_queue:
        self.gf.shutdown('event')
        self.assertEqual(mock_queue.put.call_count, 1)
        self.assertEqual(mock_queue.put.call_args, mock.call(self.gf._quit_object))
