mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
docstrings
This commit is contained in:
parent
677e62e73e
commit
5c6e0a2bb4
@ -708,6 +708,11 @@ class TestMissingPorts(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_tub_location_tcp(self):
|
||||
"""
|
||||
If ``reveal-IP-address`` is set to false and ``tub.location`` includes a
|
||||
**tcp** hint then ``_tub_portlocation`` raises `PrivacyError`` because
|
||||
TCP leaks IP addresses.
|
||||
"""
|
||||
config = config_from_string(
|
||||
"fake.port",
|
||||
"no-basedir",
|
||||
@ -725,6 +730,11 @@ class TestMissingPorts(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_tub_location_legacy_tcp(self):
|
||||
"""
|
||||
If ``reveal-IP-address`` is set to false and ``tub.location`` includes a
|
||||
"legacy" hint with no explicit type (which means it is a **tcp** hint)
|
||||
then the behavior is the same as for an explicit **tcp** hint.
|
||||
"""
|
||||
config = config_from_string(
|
||||
"fake.port",
|
||||
"no-basedir",
|
||||
|
Loading…
Reference in New Issue
Block a user