#NEWLINE# @ assert_logs ( NodeLog . POINTER_CREATED , 'collection' ) #NEWLINE# def test_creates_node_link_to_public_project_logged_in( self ) : #NEWLINE# #INDENT# res = self . app . post_json_api ( self . url , self . post_payload ( embedded_node_id . public_project . _id ) , auth = self . user_one . auth ) #NEWLINE# assert_equal ( res . status_code , 201 ) #NEWLINE# assert_equal ( res . content_type , 'application/vnd.api+json' ) #NEWLINE# res_json = res . json [ 'data' ] #NEWLINE# embedded_node_id = res_json [ 'embeds' ] [ 'target_node' ] [ 'data' ] [ 'id' ] #NEWLINE# assert_equal ( embedded_node_id , self . public_project . _id )