docstrings

This commit is contained in:
Jean-Paul Calderone 2020-12-14 18:33:28 -05:00
parent 677e62e73e
commit 5c6e0a2bb4

View File

@ -708,6 +708,11 @@ class TestMissingPorts(unittest.TestCase):
) )
def test_tub_location_tcp(self): 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( config = config_from_string(
"fake.port", "fake.port",
"no-basedir", "no-basedir",
@ -725,6 +730,11 @@ class TestMissingPorts(unittest.TestCase):
) )
def test_tub_location_legacy_tcp(self): 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( config = config_from_string(
"fake.port", "fake.port",
"no-basedir", "no-basedir",