mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
fix tests to match
This commit is contained in:
parent
2ecb8171eb
commit
ea1c1d27de
@ -189,7 +189,7 @@ class CreateOnion(unittest.TestCase):
|
|||||||
|
|
||||||
launch_tor.assert_called_with(reactor, executable,
|
launch_tor.assert_called_with(reactor, executable,
|
||||||
os.path.abspath(private_dir), txtorcon)
|
os.path.abspath(private_dir), txtorcon)
|
||||||
txtorcon.EphemeralHiddenService.assert_called_with("999999 127.0.0.1:3457")
|
txtorcon.EphemeralHiddenService.assert_called_with("3457 127.0.0.1:999999")
|
||||||
ehs.add_to_tor.assert_called_with(protocol)
|
ehs.add_to_tor.assert_called_with(protocol)
|
||||||
ehs.remove_from_tor.assert_called_with(protocol)
|
ehs.remove_from_tor.assert_called_with(protocol)
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ class CreateOnion(unittest.TestCase):
|
|||||||
tahoe_config_tor, tor_port, tor_location = self.successResultOf(d)
|
tahoe_config_tor, tor_port, tor_location = self.successResultOf(d)
|
||||||
|
|
||||||
connect_to_tor.assert_called_with(reactor, cli_config, txtorcon)
|
connect_to_tor.assert_called_with(reactor, cli_config, txtorcon)
|
||||||
txtorcon.EphemeralHiddenService.assert_called_with("999999 127.0.0.1:3457")
|
txtorcon.EphemeralHiddenService.assert_called_with("3457 127.0.0.1:999999")
|
||||||
ehs.add_to_tor.assert_called_with(protocol)
|
ehs.add_to_tor.assert_called_with(protocol)
|
||||||
ehs.remove_from_tor.assert_called_with(protocol)
|
ehs.remove_from_tor.assert_called_with(protocol)
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ class Provider_Service(unittest.TestCase):
|
|||||||
self.assertIs(p._onion_tor_control_proto, tor_state.protocol)
|
self.assertIs(p._onion_tor_control_proto, tor_state.protocol)
|
||||||
launch_tor.assert_called_with(reactor, None,
|
launch_tor.assert_called_with(reactor, None,
|
||||||
os.path.join(basedir, "private"), txtorcon)
|
os.path.join(basedir, "private"), txtorcon)
|
||||||
txtorcon.EphemeralHiddenService.assert_called_with("123 127.0.0.1:456",
|
txtorcon.EphemeralHiddenService.assert_called_with("456 127.0.0.1:123",
|
||||||
"private key")
|
"private key")
|
||||||
ehs.add_to_tor.assert_called_with(tor_state.protocol)
|
ehs.add_to_tor.assert_called_with(tor_state.protocol)
|
||||||
|
|
||||||
@ -524,7 +524,7 @@ class Provider_Service(unittest.TestCase):
|
|||||||
self.assertIs(p._onion_tor_control_proto, tor_state.protocol)
|
self.assertIs(p._onion_tor_control_proto, tor_state.protocol)
|
||||||
cfs.assert_called_with(reactor, "ep_desc")
|
cfs.assert_called_with(reactor, "ep_desc")
|
||||||
txtorcon.build_tor_connection.assert_called_with(tcep)
|
txtorcon.build_tor_connection.assert_called_with(tcep)
|
||||||
txtorcon.EphemeralHiddenService.assert_called_with("123 127.0.0.1:456",
|
txtorcon.EphemeralHiddenService.assert_called_with("456 127.0.0.1:123",
|
||||||
"private key")
|
"private key")
|
||||||
ehs.add_to_tor.assert_called_with(tor_state.protocol)
|
ehs.add_to_tor.assert_called_with(tor_state.protocol)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user