def MockRedirect(self, url):
    self.MockSelf('redirect')
    self._test.redirect(url).AndReturn(None)
Mock a .redirect().
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/test_base.py/RequestHandlerTest.MockRedirect