#NEWLINE# def test_registerUtility_wo_event( self ) : #NEWLINE# #INDENT# from zope.interface.declarations import InterfaceClass #NEWLINE# from zope.interface._compat import _u #NEWLINE# class IFoo ( InterfaceClass ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# ifoo = IFoo ( 'IFoo' ) #NEWLINE# _info = _u ( 'info' ) #NEWLINE# _name = _u ( 'name' ) #NEWLINE# _to_reg = object ( ) #NEWLINE# comp = self . _makeOne ( ) #NEWLINE# ( _monkey , _events ) = self . _wrapEvents ( ) #NEWLINE# with _monkey : #NEWLINE# #INDENT# comp . registerUtility ( _to_reg , ifoo , _name , _info , False ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( _events ) , 0 )