#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# CFTPClientTestBase . setUp ( self ) #NEWLINE# self . startServer ( ) #NEWLINE# cmds = '-p %i -l testuser --known-hosts kh_test --user-authentications publickey --host-key-algorithms ssh-rsa -i dsa_test -a -v 127.0.0.1' #NEWLINE# port = self . server . getHost ( ) . port #NEWLINE# cmds = test_conch . _makeArgs ( ( cmds % port ) . split ( ) , mod = 'cftp' ) #NEWLINE# log . msg ( ( 'running %s %s' % ( sys . executable , cmds ) ) ) #NEWLINE# d = defer . Deferred ( ) #NEWLINE# self . processProtocol = SFTPTestProcess ( d ) #NEWLINE# d . addCallback ( ( lambda _ : self . processProtocol . clearBuffer ( ) ) ) #NEWLINE# env = os . environ . copy ( ) #NEWLINE# env [ 'PYTHONPATH' ] = os . pathsep . join ( sys . path ) #NEWLINE# reactor . spawnProcess ( self . processProtocol , sys . executable , cmds , env = env ) #NEWLINE# return d