#NEWLINE# def test_basic( self ) : #NEWLINE# #INDENT# '\n        Create a directory tree and make sure we get the right result.\n\n        ' #NEWLINE# temp_dir = tempfile . mkdtemp ( ) #NEWLINE# resolve = ( lambda * x : os . path . join ( temp_dir , * x ) ) #NEWLINE# try : #NEWLINE# #INDENT# os . mkdir ( resolve ( 'a' ) ) #NEWLINE# os . mkdir ( resolve ( 'b' ) ) #NEWLINE# open ( resolve ( 'a' , 'foo' ) , 'w' ) . close ( ) #NEWLINE# open ( resolve ( 'a' , 'bar' ) , 'w' ) . close ( ) #NEWLINE# desired_tree = set ( [ 'a' , 'b' , 'a/foo' , 'a/bar' ] ) #NEWLINE# assert ( set ( file_utilities . get_files ( temp_dir ) ) == desired_tree ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( temp_dir )