A better name

This commit is contained in:
Jean-Paul Calderone 2020-12-15 13:34:04 -05:00
parent be559ab3a5
commit c2dc2b39da
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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,