@patch('txtorcon.torconfig.find_tor_binary')
    def test_no_tor_binary(self, ftb):
        self.transport = proto_helpers.StringTransport()
        config = TorConfig()
        d = None

        class Connector:
            def __call__(self, proto, trans):
                proto._set_valid_events('STATUS_CLIENT')
                proto.makeConnection(trans)
                proto.post_bootstrap.callback(proto)
                return proto.post_bootstrap

        self.protocol = FakeControlProtocol([])
        torconfig.find_tor_binary = lambda: None
        trans = FakeProcessTransport()
        trans.protocol = self.protocol
        creator = functools.partial(Connector(), self.protocol, self.transport)
        try:
            d = launch_tor(
                config,
                FakeReactor(self, trans, lambda x: None),
                connection_creator=creator
            )
            self.fail()

        except TorNotFound:
            pass  # success!

        return d


# the RSA keys have been shortened below for readability
Returns timeout to calculate connect timeout.
dataset/ETHPy150Open meejah/txtorcon/test/test_torconfig.py/ErrorTests.test_no_tor_binary--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/masterd/instance.py/_DiskImportExportBase._GetConnectedCheckEpoch