#NEWLINE# def test_has_node( self ) : #NEWLINE# #INDENT# for i in range ( self . NUM_NODES ) : #NEWLINE# #INDENT# self . assertTrue ( self . fake_community . has_node_index ( self ) ) #NEWLINE# self . assertTrue ( ( i in self . fake_community ) ) #NEWLINE# #UNINDENT# self . assertFalse ( self . fake_community . has_node_index ( self . NUM_NODES ) ) #NEWLINE# self . assertFalse ( ( self . NUM_NODES in self . fake_community ) )