def test_callRemoteErrorLocalCallbackErrorLogging(self):
        """
        Like L{test_callRemoteSuccessLocalCallbackErrorLogging}, but for the
        case where the L{Deferred} returned by C{callRemote} fails.
        """
        self.sender.expectError()

        callResult = self.dispatcher.callRemote(Hello, hello=b'world')
        callResult.addErrback(lambda result: 1 // 0)

        self.dispatcher.ampBoxReceived(amp.AmpBox({
                    b'_error': b'1', b'_error_code': b'bugs',
                    b'_error_description': b'stuff'}))

        self._localCallbackErrorLoggingTest(callResult)

        Like L{test_callRemoteSuccessLocalCallbackErrorLogging}, but for the
        case where the L{Deferred} returned by C{callRemote} fails.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py