unittest decorator: the method is performed only once

@classmethod
    def setUpClass(cls):
        print "start!"
   

    @classmethod
    def tearDownClass(cls):
        time.sleep(1)
        print "end!"

Guess you like

Origin www.cnblogs.com/yaohu/p/11593434.html