#NEWLINE# def test_resource_directory( ) : #NEWLINE# #INDENT# with csvs ( ) as path : #NEWLINE# #INDENT# r = resource ( path ) #NEWLINE# assert ( type ( r ) == Directory ( CSV ) ) #NEWLINE# assert ( r . path . rstrip ( os . path . sep ) == path . rstrip ( os . path . sep ) ) #NEWLINE# r2 = resource ( os . path . join ( path , '*.csv' ) ) #NEWLINE# assert ( type ( r2 ) == Directory ( CSV ) ) #NEWLINE# assert ( r2 . path . rstrip ( os . path . sep ) == path . rstrip ( os . path . sep ) )