def run(self):
     self.__autotest = ChannelTest(self.__simu, 1)
     self.__autotest.start()
     self.__autotest.join()
     self.__autotest = ChannelTest(self.__simu, 2)
     self.__autotest.start()
     self.__autotest.join()
     print "\nAutotest finished"
class Autotest( threading.Thread ) :
    
    __autotest = None
    __simu = None
    
    def __init__(self, simu) :
        threading.Thread.__init__(self)
        self.__simu = simu
        
        
    def run(self):
        self.__autotest = ChannelTest(self.__simu, 1)
        self.__autotest.start()
        self.__autotest.join()
        self.__autotest = ChannelTest(self.__simu, 2)
        self.__autotest.start()
        self.__autotest.join()
        print "\nAutotest finished"