#NEWLINE# def test_degree2( self ) : #NEWLINE# #INDENT# H = self . G ( ) #NEWLINE# H . add_edges_from ( [ ( 1 , 24 ) , ( 1 , 2 ) ] ) #NEWLINE# assert_equal ( sorted ( ( n for ( n , d ) in H . degree ( [ 1 , 24 ] ) ) ) , [ 1 , 2 ] )