mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_no_i2p
This commit is contained in:
parent
b5d4a2579b
commit
ec9851f6d8
@ -212,18 +212,6 @@ class Tor(unittest.TestCase):
|
||||
|
||||
class I2P(unittest.TestCase):
|
||||
|
||||
def test_unimportable(self):
|
||||
config = config_from_string(
|
||||
"fake.port",
|
||||
"no-basedir",
|
||||
BASECONFIG,
|
||||
)
|
||||
with mock.patch("allmydata.util.i2p_provider._import_i2p",
|
||||
return_value=None):
|
||||
i2p_provider = create_i2p_provider(reactor, config)
|
||||
h = i2p_provider.get_i2p_handler()
|
||||
self.assertEqual(h, None)
|
||||
|
||||
def test_default(self):
|
||||
config = config_from_string("fake.port", "no-basedir", BASECONFIG)
|
||||
h1 = mock.Mock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user