Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_disabled

This commit is contained in:
Jean-Paul Calderone 2020-12-16 10:34:07 -05:00
parent eeebd15c42
commit d3f8839f1b

View File

@ -67,16 +67,6 @@ class CreateConnectionHandlersTests(SyncTestCase):
class Tor(unittest.TestCase):
def test_disabled(self):
config = config_from_string(
"fake.port",
"no-basedir",
BASECONFIG + "[tor]\nenabled = false\n",
)
tor_provider = create_tor_provider(reactor, config)
h = tor_provider.get_tor_handler()
self.assertEqual(h, None)
def test_unimportable(self):
with mock.patch("allmydata.util.tor_provider._import_tor",
return_value=None):