#NEWLINE# def test_unnormalized_k5_load( self ) : #NEWLINE# #INDENT# G = self . K5 #NEWLINE# c = nx . load_centrality ( G , normalized = False ) #NEWLINE# d = { #NEWLINE# #INDENT# 0 : 0.0 , #NEWLINE# 1 : 0.0 , #NEWLINE# 2 : 0.0 , #NEWLINE# 3 : 0.0 , #NEWLINE# 4 : 0.0 , #NEWLINE# #UNINDENT# } #NEWLINE# for n in sorted ( G ) : #NEWLINE# #INDENT# assert_almost_equal ( c [ n ] , d [ n ] , places = 3 )