def stub_out(self, old, new):
        self.useFixture(fixtures.MonkeyPatch(old, new))
Replace a function for the duration of the test.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/test.py/TestCase.stub_out