def test_interfaceDeclarations(self):
        """
        The classes in the amp module ought to implement the interfaces that
        are declared for their benefit.
        """
        for interface, implementation in [(amp.IBoxSender, amp.BinaryBoxProtocol),
                                          (amp.IBoxReceiver, amp.BoxDispatcher),
                                          (amp.IResponderLocator, amp.CommandLocator),
                                          (amp.IResponderLocator, amp.SimpleStringLocator),
                                          (amp.IBoxSender, amp.AMP),
                                          (amp.IBoxReceiver, amp.AMP),
                                          (amp.IResponderLocator, amp.AMP)]:
            self.assertTrue(interface.implementedBy(implementation),
                            "%s does not implements(%s)" % (implementation, interface))

        The classes in the amp module ought to implement the interfaces that
        are declared for their benefit.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py