update tests to match

This commit is contained in:
Brian Warner 2017-01-17 11:47:47 -05:00
parent 998af5c26e
commit 6db7686a8f
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class I2P(unittest.TestCase):
with mock.patch("foolscap.connections.i2p.default",
return_value=h1) as f:
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)
def test_samport(self):

View File

@ -221,7 +221,7 @@ class Provider(unittest.TestCase):
h = p.get_i2p_handler()
cfs.assert_called_with(reactor, "ep_desc")
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):
i2p = mock.Mock()
@ -292,7 +292,7 @@ class Provider(unittest.TestCase):
p = i2p_provider.Provider("basedir", FakeConfig(), reactor)
h = p.get_i2p_handler()
self.assertIs(h, handler)
i2p.default.assert_called_with(reactor)
i2p.default.assert_called_with(reactor, keyfile=None)
class Provider_CheckI2PConfig(unittest.TestCase):
def test_default(self):