#NEWLINE# def test_copy_remote_csv( ) : #NEWLINE# #INDENT# with tmpfile ( 'csv' ) as target : #NEWLINE# #INDENT# with filetext ( 'name,balance\nAlice,100\nBob,200' , extension = 'csv' ) as fn : #NEWLINE# #INDENT# csv = resource ( fn ) #NEWLINE# uri = ( 'ssh://localhost:%s.csv' % target ) #NEWLINE# scsv = into ( uri , csv ) #NEWLINE# assert isinstance ( scsv , SSH ( CSV ) ) #NEWLINE# assert ( discover ( scsv ) == discover ( csv ) ) #NEWLINE# csv2 = into ( target , scsv ) #NEWLINE# assert ( into ( list , csv ) == into ( list , csv2 ) )