def _mock_logger(self):
        self._orig_logger = create_images.logger
        create_images.logger = MagicMock()
Apply request middleware in order, returning the first encountered
dataset/ETHPy150Open nvbn/coviolations_web/nodes/tests/test_create_images.py/CreateImagesCase._mock_logger--crossover with--dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/core/handlers/base.py/Handler.apply_request_middleware