def forge(self): if self._forge is None: self._forge = forge.Forge() return self._forge
def setUp(self): super(PopenTest, self).setUp() self.forge = forge.Forge() self.fake_popen = self.forge.create_wildcard_function_stub() self.forge.replace_with(runner, "Popen", self.fake_popen)
def _forge_timeline(self): self.forge = forge.Forge() self.forge.replace_with(Timeline, "_real_time", self.time) self.forge.replace_with(Timeline, "_real_sleep", self.sleep) self.timeline = Timeline()
def setUp(self): super(NosePluginTest, self).setUp() self.forge = forge.Forge()