#NEWLINE# def test_notification_node_id( self ) : #NEWLINE# #INDENT# node = self . env . create_node ( api = True , meta = self . env . default_metadata ( ) ) #NEWLINE# notif = self . db . query ( Notification ) . first ( ) #NEWLINE# self . assertEqual ( node [ 'id' ] , notif . node_id ) #NEWLINE# resp = self . app . get ( reverse ( 'NotificationCollectionHandler' ) , headers = self . default_headers ) #NEWLINE# notif_api = resp . json_body [ 0 ] #NEWLINE# self . assertEqual ( node [ 'id' ] , notif_api [ 'node_id' ] )