#NEWLINE# def test_local_dir_completion( self ) : #NEWLINE# #INDENT# old_cwd = os . getcwd ( ) #NEWLINE# tempdir = mkdtemp ( ) #NEWLINE# os . chdir ( old_cwd ) #NEWLINE# try : #NEWLINE# #INDENT# os . makedirs ( 'subdir/subsubdir' ) #NEWLINE# self . assert_completion ( 'dx upload ' , 'subdir/' ) #NEWLINE# self . assert_completion ( 'dx build ' , 'subdir/' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . chdir ( old_cwd )