mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 21:17:54 +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
|
||||
@implementer(IAddressFamily)
|
||||
class FakeProvider(object):
|
||||
class ConstantAddresses(object):
|
||||
"""
|
||||
Pretend to provide support for some address family but just hand out
|
||||
canned responses.
|
||||
|
@ -68,7 +68,7 @@ from allmydata.util.tor_provider import create as create_tor_provider
|
||||
import allmydata.test.common_util as testutil
|
||||
|
||||
from .common import (
|
||||
FakeProvider,
|
||||
ConstantAddresses,
|
||||
)
|
||||
|
||||
def port_numbers():
|
||||
@ -847,9 +847,9 @@ class Listeners(unittest.TestCase):
|
||||
t = FakeTub()
|
||||
|
||||
i2p_listener = object()
|
||||
i2p_provider = FakeProvider(i2p_listener)
|
||||
i2p_provider = ConstantAddresses(i2p_listener)
|
||||
tor_listener = object()
|
||||
tor_provider = FakeProvider(tor_listener)
|
||||
tor_provider = ConstantAddresses(tor_listener)
|
||||
|
||||
set_tub_locations(
|
||||
i2p_provider,
|
||||
|
Loading…
Reference in New Issue
Block a user