mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-04 12:14:11 +00:00
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_configdir
This commit is contained in:
parent
81b684b583
commit
8271dbf3e6
@ -189,20 +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_configdir(self):
|
|
||||||
config = config_from_string(
|
|
||||||
"fake.port",
|
|
||||||
"no-basedir",
|
|
||||||
BASECONFIG + "[i2p]\ni2p.configdir = cfg\n",
|
|
||||||
)
|
|
||||||
h1 = mock.Mock()
|
|
||||||
with mock.patch("foolscap.connections.i2p.local_i2p",
|
|
||||||
return_value=h1) as f:
|
|
||||||
i2p_provider = create_i2p_provider(None, config)
|
|
||||||
h = i2p_provider.get_i2p_handler()
|
|
||||||
|
|
||||||
self.assertEqual(f.mock_calls, [mock.call("cfg")])
|
|
||||||
self.assertIdentical(h, h1)
|
|
||||||
|
|
||||||
class Connections(unittest.TestCase):
|
class Connections(unittest.TestCase):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user