#NEWLINE# def test_node_attribute_xy_directed( self ) : #NEWLINE# #INDENT# attrxy = sorted ( nx . node_attribute_xy ( self . D , 'fish' ) ) #NEWLINE# attrxy_result = sorted ( [ ( 'one' , 'one' ) , ( 'two' , 'two' ) , ( 'one' , 'red' ) , ( 'two' , 'blue' ) ] ) #NEWLINE# assert_equal ( attrxy , attrxy_result )