#NEWLINE# def test_interfaces( self ) : #NEWLINE# #INDENT# '\n        L{protocol.Factory} instances provide both L{IProtocolFactory} and\n        L{ILoggingContext}.\n        ' #NEWLINE# factory = protocol . Factory ( ) #NEWLINE# self . assertTrue ( verifyObject ( IProtocolFactory , factory ) ) #NEWLINE# self . assertTrue ( verifyObject ( ILoggingContext , self ) )