@capture_logging(None)
    def test_delete_proxy_errors_as_errbacks(self, logger):
        fake_network = make_memory_network()
        fake_network.create_proxy_to(ip=u'192.0.2.100', port=3306)
        fake_network.delete_proxy = lambda proxy: 1/0

        api = ApplicationNodeDeployer(
            u'example.com', docker_client=FakeDockerClient(),
            network=fake_network)

        d = SetProxies(ports=[]).run(
            api, state_persister=InMemoryStatePersister())
        exception = self.failureResultOf(d, FirstError)
        self.assertIsInstance(
            exception.value.subFailure.value,
            ZeroDivisionError
        )
        logger.flush_tracebacks(ZeroDivisionError)
Exceptions raised in `delete_proxy` operations are reported as
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/test_container.py/SetProxiesTests.test_delete_proxy_errors_as_errbacks