cmd_receive: rename TwistedReceiver to just Receiver
This commit is contained in:
parent
9dde091f2b
commit
b4e39edb3f
|
@ -33,10 +33,10 @@ def receive(args, reactor=reactor):
|
||||||
* TransferError: the sender rejected the transfer: verifier mismatch
|
* TransferError: the sender rejected the transfer: verifier mismatch
|
||||||
* any other error: something unexpected happened
|
* any other error: something unexpected happened
|
||||||
"""
|
"""
|
||||||
return TwistedReceiver(args, reactor).go()
|
return Receiver(args, reactor).go()
|
||||||
|
|
||||||
|
|
||||||
class TwistedReceiver:
|
class Receiver:
|
||||||
def __init__(self, args, reactor=reactor):
|
def __init__(self, args, reactor=reactor):
|
||||||
assert isinstance(args.relay_url, type(u""))
|
assert isinstance(args.relay_url, type(u""))
|
||||||
self.args = args
|
self.args = args
|
||||||
|
|
|
@ -831,7 +831,7 @@ class ExtractFile(unittest.TestCase):
|
||||||
def test_filenames(self):
|
def test_filenames(self):
|
||||||
args = mock.Mock()
|
args = mock.Mock()
|
||||||
args.relay_url = ""
|
args.relay_url = ""
|
||||||
ef = cmd_receive.TwistedReceiver(args)._extract_file
|
ef = cmd_receive.Receiver(args)._extract_file
|
||||||
extract_dir = os.path.abspath(self.mktemp())
|
extract_dir = os.path.abspath(self.mktemp())
|
||||||
|
|
||||||
zf = mock.Mock()
|
zf = mock.Mock()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user