mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
A better name
This commit is contained in:
parent
be559ab3a5
commit
c2dc2b39da
@ -1156,7 +1156,7 @@ def _corrupt_uri_extension(data, debug=False):
|
|||||||
|
|
||||||
@attr.s
|
@attr.s
|
||||||
@implementer(IAddressFamily)
|
@implementer(IAddressFamily)
|
||||||
class FakeProvider(object):
|
class ConstantAddresses(object):
|
||||||
"""
|
"""
|
||||||
Pretend to provide support for some address family but just hand out
|
Pretend to provide support for some address family but just hand out
|
||||||
canned responses.
|
canned responses.
|
||||||
|
@ -68,7 +68,7 @@ from allmydata.util.tor_provider import create as create_tor_provider
|
|||||||
import allmydata.test.common_util as testutil
|
import allmydata.test.common_util as testutil
|
||||||
|
|
||||||
from .common import (
|
from .common import (
|
||||||
FakeProvider,
|
ConstantAddresses,
|
||||||
)
|
)
|
||||||
|
|
||||||
def port_numbers():
|
def port_numbers():
|
||||||
@ -847,9 +847,9 @@ class Listeners(unittest.TestCase):
|
|||||||
t = FakeTub()
|
t = FakeTub()
|
||||||
|
|
||||||
i2p_listener = object()
|
i2p_listener = object()
|
||||||
i2p_provider = FakeProvider(i2p_listener)
|
i2p_provider = ConstantAddresses(i2p_listener)
|
||||||
tor_listener = object()
|
tor_listener = object()
|
||||||
tor_provider = FakeProvider(tor_listener)
|
tor_provider = ConstantAddresses(tor_listener)
|
||||||
|
|
||||||
set_tub_locations(
|
set_tub_locations(
|
||||||
i2p_provider,
|
i2p_provider,
|
||||||
|
Loading…
Reference in New Issue
Block a user