@capture_logging(None)
    def test_open_ports_errors_all_logged(self, logger):
        fake_network = make_memory_network()
        fake_network.open_port = lambda port: 1/0

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

        d = OpenPorts(
            ports=[OpenPort(port=3306),
                   OpenPort(port=3307),
                   OpenPort(port=3308)]
        ).run(api, state_persister=InMemoryStatePersister())

        self.failureResultOf(d, FirstError)

        failures = logger.flush_tracebacks(ZeroDivisionError)
        self.assertEqual(3, len(failures))
a.__contains__(b) <==> b in a
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/test_container.py/OpenPortsTests.test_open_ports_errors_all_logged--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/arrays.py/Array.__contains__