'If the last callback on the L{Deferred} returned by C{callRemote} (added
by application code calling C{callRemote}) fails, the failure is passed
to the sender\'s C{unhandledError} method.'

def test_callRemoteSuccessLocalCallbackErrorLogging(self):

    self.sender.expectError()
    callResult = self.dispatcher.callRemote(Hello, hello='world')
    callResult.addCallback((lambda result: (1 // 0)))
    self.dispatcher.ampBoxReceived(amp.AmpBox({'hello': 'yay', 'print': 'ignored', '_answer': '1'}))
    self._localCallbackErrorLoggingTest(callResult)
