Replace MockRequest with mock.Mock