'Test the stops.'

def test_run_stops(self):

    with mock.patch.object(self.gf, '_queue') as mock_queue:
        mock_queue.get.return_value = self.gf._quit_object
        self.assertEqual(None, self.gf.run())
        self.assertEqual(mock_queue.get.call_count, 1)
        self.assertEqual(mock_queue.get.call_args, mock.call())
        self.assertEqual(mock_queue.task_done.call_count, 1)
        self.assertEqual(mock_queue.task_done.call_args, mock.call())
