Ejemplo 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
Ejemplo 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
Ejemplo 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
Ejemplo 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