mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 08:48:01 +00:00
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir_executable
This commit is contained in:
parent
6d66be43b9
commit
81b684b583
@ -189,22 +189,6 @@ class I2P(unittest.TestCase):
|
|||||||
self.assertEqual(f.mock_calls, [exp])
|
self.assertEqual(f.mock_calls, [exp])
|
||||||
self.assertIdentical(h, h1)
|
self.assertIdentical(h, h1)
|
||||||
|
|
||||||
def test_launch_configdir_and_executable(self):
|
|
||||||
config = config_from_string(
|
|
||||||
"no-basedir",
|
|
||||||
"fake.port",
|
|
||||||
BASECONFIG + "[i2p]\nlaunch = true\n" +
|
|
||||||
"i2p.executable = i2p\n" + "i2p.configdir = cfg\n",
|
|
||||||
)
|
|
||||||
h1 = mock.Mock()
|
|
||||||
with mock.patch("foolscap.connections.i2p.launch",
|
|
||||||
return_value=h1) as f:
|
|
||||||
i2p_provider = create_i2p_provider(reactor, config)
|
|
||||||
h = i2p_provider.get_i2p_handler()
|
|
||||||
exp = mock.call(i2p_configdir="cfg", i2p_binary="i2p")
|
|
||||||
self.assertEqual(f.mock_calls, [exp])
|
|
||||||
self.assertIdentical(h, h1)
|
|
||||||
|
|
||||||
def test_configdir(self):
|
def test_configdir(self):
|
||||||
config = config_from_string(
|
config = config_from_string(
|
||||||
"fake.port",
|
"fake.port",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user