def setUp(self): self.enact_patch = patch.object(pyqubes.vm.VM, 'enact').start() self.addCleanup(patch.stopall)