#NEWLINE# def test_node_degree_xy_selfloop( self ) : #NEWLINE# #INDENT# xy = sorted ( nx . node_degree_xy ( self . S ) ) #NEWLINE# xy_result = sorted ( [ ( 2 , 2 ) , ( 2 , 2 ) ] ) #NEWLINE# assert_equal ( xy , xy_result )