Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
    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
Esempio n. 4
0
    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