#NEWLINE# def test_mine_on_requests_as_pushmaster( self ) : #NEWLINE# #INDENT# push_contents = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# section_id = [ ] #NEWLINE# for section in self . accepting_push_sections : #NEWLINE# #INDENT# push_contents [ section ] = [ self . basic_request ] #NEWLINE# section_id . append ( ( '%s-items' % section ) ) #NEWLINE# #UNINDENT# kwargs = dict ( self . basic_kwargs ) #NEWLINE# kwargs [ 'push_contents' ] = push_contents #NEWLINE# with self . no_ui_modules ( ) : #NEWLINE# #INDENT# tree = self . render_etree ( self . push_status_page , push_info = self . basic_push , ** kwargs ) #NEWLINE# #UNINDENT# found_mockreq = [ ] #NEWLINE# for mockreq in tree . iter ( 'mock' ) : #NEWLINE# #INDENT# T . assert_not_in ( 'class' , mockreq . getparent ( ) . attrib . keys ( ) ) #NEWLINE# found_mockreq . append ( mockreq ) #NEWLINE# #UNINDENT# T . assert_equal ( 5 , len ( found_mockreq ) )