#NEWLINE# def test_registerUtility_both_factory_and_component( self ) : #NEWLINE# #INDENT# def _factory( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# _to_reg = object ( ) #NEWLINE# comp = self . _makeOne ( ) #NEWLINE# self . assertRaises ( TypeError , comp . registerUtility , component = _to_reg , factory = self )