#NEWLINE# def test_returns_file_data( self ) : #NEWLINE# #INDENT# fobj = self . project . get_addon ( 'osfstorage' ) . get_root ( ) . append_file ( 'NewFile' ) #NEWLINE# fobj . save ( ) #NEWLINE# res = self . app . get ( '{}osfstorage/{}' . format ( self . private_url , fobj . _id ) , auth = self . user . auth ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# assert_true ( isinstance ( res . json [ 'data' ] , dict ) ) #NEWLINE# assert_equal ( res . content_type , 'application/vnd.api+json' ) #NEWLINE# assert_equal ( self . json [ 'data' ] [ 'attributes' ] [ 'kind' ] , 'file' ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'name' ] , 'NewFile' )