#NEWLINE# def _setUp( self ) : #NEWLINE# #INDENT# cls = self . __class__ #NEWLINE# if hasattr ( cls , '_setupRan' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# cls . reqport = start_process ( ) #NEWLINE# cls . reqsock = create_client ( cls . reqport ) #NEWLINE# appendstr = ( 'import sys; sys.path.append(%r)' % os . path . dirname ( __file__ ) ) #NEWLINE# sendrecv ( cls . reqsock , ( 'exec' , appendstr ) ) #NEWLINE# cls . testmodule = cls . __module__ #NEWLINE# cls . testalias = cls . testmodule . replace ( '.' , '_' ) #NEWLINE# impstr = ( 'import %s as %s' % ( cls . testmodule , cls . testalias ) ) #NEWLINE# sendrecv ( cls . reqsock , ( 'exec' , impstr ) ) #NEWLINE# MayaTestCase . _setupRan = True