def test_tor_connection_user_control_port(self):

        config = TorConfig()
        config.OrPort = 1234
        config.ControlPort = 4321

        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

        def on_protocol(proto):
            proto.outReceived('Bootstrapped 90%\n')
            proto.outReceived('Bootstrapped 100%\n')

        trans = FakeProcessTransport()
        trans.protocol = self.protocol
        creator = functools.partial(Connector(), self.protocol, self.transport)
        d = launch_tor(
            config,
            FakeReactor(self, trans, on_protocol),
            connection_creator=creator,
            tor_binary='/bin/echo'
        )

        def check_control_port(proto, tester):
            # we just want to ensure launch_tor() didn't mess with
            # the controlport we set
            tester.assertEquals(config.ControlPort, 4321)

        d.addCallback(check_control_port, self)
        d.addErrback(self.fail)
        return d
Reloads the database from its file.
dataset/ETHPy150Open meejah/txtorcon/test/test_torconfig.py/LaunchTorTests.test_tor_connection_user_control_port--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/src/ircdb.py/UsersDictionary.reload