def setUp(self): self.basedir = os.path.abspath("basedir") if os.path.exists(self.basedir): shutil.rmtree(self.basedir) os.makedirs(self.basedir) self.real_bot = base.BotBase(self.basedir, False) self.real_bot.startService() self.bot = FakeRemote(self.real_bot)
def setUp(self): self.basedir = os.path.abspath("basedir") if os.path.exists(self.basedir): shutil.rmtree(self.basedir) os.makedirs(self.basedir) self.bot = base.BotBase(self.basedir, False) self.bot.startService() # get a SlaveBuilder object from the bot and wrap it as a fake remote builders = yield self.bot.remote_setBuilderList([('sb', 'sb')]) self.sb = FakeRemote(builders['sb']) self.setUpCommand()