#NEWLINE# def test_registerAdapter_w_required_containing_junk( 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# ibar = IFoo ( 'IBar' ) #NEWLINE# _info = _u ( 'info' ) #NEWLINE# _name = _u ( 'name' ) #NEWLINE# class _Factory ( object ) : #NEWLINE# #INDENT# def __init__( self , context ) : #NEWLINE# #INDENT# self . _context = context #NEWLINE# #UNINDENT# #UNINDENT# comp = self . _makeOne ( ) #NEWLINE# self . assertRaises ( TypeError , comp . registerAdapter , _Factory , [ object ( ) ] , provided = ifoo , name = _name , info = _info )