Ejemplo n.º 1
0
 def forge(self):
     if self._forge is None:
         self._forge = forge.Forge()
     return self._forge
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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()
Ejemplo n.º 4
0
 def setUp(self):
     super(NosePluginTest, self).setUp()
     self.forge = forge.Forge()