Can I call a test method from within the test class in python? For example:


class Test(unittest.TestCase):
    def setUp(self):
        #do stuff

    def test1(self):
        self.test2()

    def test2(self):
        #do stuff


update: I forgot the other half of my question. Will setup or teardown be called only after the method that the tester calls? Or will it get called between test1 entering and after calling test2 from test1?
Yes to both:

setUp will be called between each test
test2 will be called twice. 

If you would like to call a function inside a test, then omit the test prefix.
python unittest methods