mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 18:06:46 +00:00
update tests to match
This commit is contained in:
parent
998af5c26e
commit
6db7686a8f
@ -158,7 +158,7 @@ class I2P(unittest.TestCase):
|
|||||||
with mock.patch("foolscap.connections.i2p.default",
|
with mock.patch("foolscap.connections.i2p.default",
|
||||||
return_value=h1) as f:
|
return_value=h1) as f:
|
||||||
h = n._make_i2p_handler()
|
h = n._make_i2p_handler()
|
||||||
self.assertEqual(f.mock_calls, [mock.call(reactor)])
|
self.assertEqual(f.mock_calls, [mock.call(reactor, keyfile=None)])
|
||||||
self.assertIdentical(h, h1)
|
self.assertIdentical(h, h1)
|
||||||
|
|
||||||
def test_samport(self):
|
def test_samport(self):
|
||||||
|
@ -221,7 +221,7 @@ class Provider(unittest.TestCase):
|
|||||||
h = p.get_i2p_handler()
|
h = p.get_i2p_handler()
|
||||||
cfs.assert_called_with(reactor, "ep_desc")
|
cfs.assert_called_with(reactor, "ep_desc")
|
||||||
self.assertIs(h, handler)
|
self.assertIs(h, handler)
|
||||||
i2p.sam_endpoint.assert_called_with(ep)
|
i2p.sam_endpoint.assert_called_with(ep, keyfile=None)
|
||||||
|
|
||||||
def test_handler_launch(self):
|
def test_handler_launch(self):
|
||||||
i2p = mock.Mock()
|
i2p = mock.Mock()
|
||||||
@ -292,7 +292,7 @@ class Provider(unittest.TestCase):
|
|||||||
p = i2p_provider.Provider("basedir", FakeConfig(), reactor)
|
p = i2p_provider.Provider("basedir", FakeConfig(), reactor)
|
||||||
h = p.get_i2p_handler()
|
h = p.get_i2p_handler()
|
||||||
self.assertIs(h, handler)
|
self.assertIs(h, handler)
|
||||||
i2p.default.assert_called_with(reactor)
|
i2p.default.assert_called_with(reactor, keyfile=None)
|
||||||
|
|
||||||
class Provider_CheckI2PConfig(unittest.TestCase):
|
class Provider_CheckI2PConfig(unittest.TestCase):
|
||||||
def test_default(self):
|
def test_default(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user