def MockError(self, status_code):
    self.MockSelf('error')
    self._test.error(status_code).AndReturn(None)
Mock an error().
dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/test_base.py/RequestHandlerTest.MockError