#NEWLINE# def _GenericNodesCheck( self , iobj , all_nodes , secondary_nodes ) : #NEWLINE# #INDENT# for i in [ all_nodes , secondary_nodes ] : #NEWLINE# #INDENT# self . assertTrue ( isinstance ( i , ( list , tuple ) ) , msg = "Data type doesn't guarantee order" ) #NEWLINE# #UNINDENT# self . assertTrue ( ( iobj . primary_node not in secondary_nodes ) ) #NEWLINE# self . assertEqual ( all_nodes [ 0 ] , iobj . primary_node , msg = 'Primary node not first node in list' )