#NEWLINE# def test_return_collection_details_logged_in( self ) : #NEWLINE# #INDENT# res = self . app . get ( self . url , auth = self . user_one . auth ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# assert_equal ( res . content_type , 'application/vnd.api+json' ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'title' ] , self . collection . title ) #NEWLINE# node_links_url = res . json [ 'data' ] [ 'relationships' ] [ 'node_links' ] [ 'links' ] [ 'related' ] [ 'href' ] #NEWLINE# expected_url = ( self . url + 'node_links/' ) #NEWLINE# assert_equal ( urlparse ( self ) . path , expected_url )