#NEWLINE# def test_process_iterator( self ) : #NEWLINE# #INDENT# conn = Accumulo ( _connect = False ) #NEWLINE# res = conn . _process_iterator ( IteratorSetting ( name = 'i1' ) ) #NEWLINE# self . assertEquals ( IteratorSetting ( name = 'i1' ) , res ) #NEWLINE# res = conn . _process_iterator ( BaseIterator ( name = 'n1' , priority = 21 , classname = 'c1' ) ) #NEWLINE# self . assertEquals ( IteratorSetting ( priority = 21 , iteratorClass = 'c1' , name = 'n1' , properties = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , conn ) #NEWLINE# with self . assertRaises ( Exception ) : #NEWLINE# #INDENT# conn . _process_iterator ( 'not an iterator' )