#NEWLINE# def test_copies_target_dir( self , tmpdir ) : #NEWLINE# #INDENT# tmpdir . ensure ( 'foo' , 'bar' , 'Dockerfile' ) #NEWLINE# ps = PathSource ( 'path' , ( 'file://' + os . path . join ( str ( tmpdir ) , 'foo' ) ) ) #NEWLINE# path = ps . path #NEWLINE# assert os . path . isfile ( os . path . join ( path , 'bar' , 'Dockerfile' ) ) #NEWLINE# assert ( ps . get ( ) == path )