#NEWLINE# def test_stats( self ) : #NEWLINE# #INDENT# assert_raises ( ValueError , self . fs . stats , 'ftp://archive' ) #NEWLINE# not_exists = self . get_test_path ( 'does_not_exist' ) #NEWLINE# assert_raises ( IOError , self . fs . stats , not_exists ) #NEWLINE# root_stat = self . fs . stats ( 's3://' ) #NEWLINE# eq_ ( True , root_stat . isDir ) #NEWLINE# eq_ ( 's3://' , root_stat . path ) #NEWLINE# bucket_stat = self . fs . stats ( ( 's3://%s' % self . bucket_name ) ) #NEWLINE# eq_ ( True , bucket_stat . isDir ) #NEWLINE# eq_ ( ( 's3://%s' % self . bucket_name ) , bucket_stat . path )