'Make ``request`` be the current request for edxmako template rendering.'

@contextmanager
def _patch_edxmako_current_request(self, request):

    with mock.patch('edxmako.request_context.get_current_request', return_value=request):
        (yield)
