mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
Duplicates test coverage in test_connections.
This commit is contained in:
parent
c3248524f0
commit
dce368016b
@ -847,20 +847,3 @@ class CreateConnectionHandlers(unittest.TestCase):
|
||||
reactor, config, provider, provider
|
||||
)
|
||||
self.assertIs(default_handlers["tcp"], None)
|
||||
|
||||
def test_reveal_ip_tcp(self):
|
||||
"""
|
||||
If reveal IP setting is false, TCP handler is not allowed.
|
||||
"""
|
||||
config = config_from_string("", "", dedent("""
|
||||
[node]
|
||||
reveal-IP-address = False
|
||||
|
||||
[connections]
|
||||
tcp = tcp
|
||||
"""))
|
||||
reactor = object() # it's not actually used?!
|
||||
provider = FakeProvider()
|
||||
with self.assertRaises(PrivacyError):
|
||||
create_connection_handlers(reactor, config, provider, provider)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user