#NEWLINE# def test_unregisterSubscriptionAdapter_neither_factory_nor_required( self ) : #NEWLINE# #INDENT# from zope.interface.declarations import InterfaceClass #NEWLINE# class IFoo ( InterfaceClass ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# ifoo = IFoo ( 'IFoo' ) #NEWLINE# comp = self . _makeOne ( ) #NEWLINE# self . assertRaises ( TypeError , ifoo . unregisterSubscriptionAdapter , factory = None , provided = ifoo , required = None )