#NEWLINE# def test_package_resource( self ) : #NEWLINE# #INDENT# ' package resource ' #NEWLINE# rm = ResourceManager ( ) #NEWLINE# f = rm . file ( 'pkgfile://envisage.resource/api.py' ) #NEWLINE# self . assertNotEqual ( f , None ) #NEWLINE# contents = f . read ( ) #NEWLINE# f . close ( ) #NEWLINE# filename = resource_filename ( 'envisage.resource' , 'api.py' ) #NEWLINE# g = open ( filename , 'rb' ) #NEWLINE# self . assertEqual ( g . read ( ) , contents ) #NEWLINE# g . close ( ) #NEWLINE# return