def add(self, execstr, expect=None, descr="", fakein=""): """ add a test. """ where = whichmodule(2) test = Test(execstr, expect, descr, where, fakein) test.prev = self.prev self.prev = test self.tests.append(test) return self
def fakein(self, execstr, expect=None, descr=""): """ call bot.fakein(). """ where = whichmodule(2) test = Test(execstr, expect, descr, where, execstr) test.prev = self.prev self.prev = test self.tests.append(test) return self