Port txsocksx to Python3 #2999

Closed
opened 2019-03-13 18:37:14 +00:00 by pythonhacker · 12 comments
pythonhacker commented 2019-03-13 18:37:14 +00:00
Owner

txsocksx - https://pypi.org/project/txsocksx/ is a dependency for foolscap and it is Python2 only.

The following issue on foolscap project already references this - https://github.com/warner/foolscap/issues/37 but it is a bit old and not updated since July 2017.

The ticket #2998 has a downstream dependency on this ticket.

txsocksx - <https://pypi.org/project/txsocksx/> is a dependency for foolscap and it is Python2 only. The following issue on foolscap project already references this - <https://github.com/warner/foolscap/issues/37> but it is a bit old and not updated since July 2017. The ticket #2998 has a downstream dependency on this ticket.
tahoe-lafs added the
c/code
p/normal
t/task
v/1.12.1
labels 2019-03-13 18:37:14 +00:00
tahoe-lafs added this to the undecided milestone 2019-03-13 18:37:14 +00:00
pythonhacker commented 2019-03-13 19:41:34 +00:00
Author
Owner

Started work on this - as a first step installed txsocksx in a Python3.5 virtual environment and got setup.py to work. Tests fail as of now.

Started work on this - as a first step installed txsocksx in a Python3.5 virtual environment and got setup.py to work. Tests fail as of now.
pythonhacker commented 2019-03-18 20:01:58 +00:00
Author
Owner

The tests fail majestically.


anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:11}
$ txsocksx_venv
(txsocksx) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:25}
$ pytest
================================================= test session starts =================================================
platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile:
collected 86 items                                                                                                    

test_client.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFF.F.FFFFF                               [ 76%]
test_grammar.py .FFFF....F                                                                                      [ 88%]
test_http.py FFFFF                                                                                              [ 94%]
test_tls.py ...FF                                                                                               [100%]

====================================================== FAILURES =======================================================
_________________________________________ TestSOCKS5Client.test_authAddition __________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_authAddition>

    def test_authAddition(self):
        fac, proto = self.makeProto(
>           _protoClass=AdditionAuthSOCKS5Client, methods={'A': ('x', 'y')})

test_client.py:222: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c97eefdd8>, methods = {'A': ('x', 'y')}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
___________________________________________ TestSOCKS5Client.test_buffering ___________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_buffering>

    def test_buffering(self):
>       fac, proto = self.makeProto()

test_client.py:192: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c986cf5c0>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
________________________________ TestSOCKS5Client.test_connectionLostAfterNegotiation _________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionLostAfterNegotiation>

    def test_connectionLostAfterNegotiation(self):
>       fac, proto = self.makeProto()

test_client.py:209: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c9765dda0>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
______________________________________ TestSOCKS5Client.test_connectionLostEarly ______________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionLostEarly>

    def test_connectionLostEarly(self):
        wholeRequest = '\x05\x00\x05\x00\x00\x01444422'
>       for e in xrange(len(wholeRequest)):
E       NameError: name 'xrange' is not defined

test_client.py:199: NameError
_______________________________________ TestSOCKS5Client.test_connectionRequest _______________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionRequest>

    def test_connectionRequest(self):
>       fac, proto = self.makeProto('host', 0x47)

test_client.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98583550>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
____________________________________ TestSOCKS5Client.test_connectionRequestError _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionRequestError>

    def test_connectionRequestError(self):
>       fac, proto = self.makeProto()

test_client.py:185: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98ad1400>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
________________________________________ TestSOCKS5Client.test_dataSentByPeer _________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
>       fac, proto = self.makeProto()

test_client.py:233: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c989520f0>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
_____________________________________ TestSOCKS5Client.test_failedMethodSelection _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_failedMethodSelection>

    def test_failedMethodSelection(self):
>       fac, proto = self.makeProto()

test_client.py:125: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98834a90>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
___________________________________ TestSOCKS5Client.test_handshakeEatsEnoughBytes ____________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_handshakeEatsEnoughBytes>

    def test_handshakeEatsEnoughBytes(self):
>       fac, proto = self.makeProto()

test_client.py:168: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98691320>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
_______________________________________ TestSOCKS5Client.test_initialHandshake ________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_initialHandshake>

    def test_initialHandshake(self):
>       fac, proto = self.makeProto()

test_client.py:115: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98ad1470>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
___________________________________________ TestSOCKS5Client.test_loginAuth ___________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuth>

    def test_loginAuth(self):
>       fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')})

test_client.py:134: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c982bd1d0>, methods = {'\x02': ('spam', 'eggs')}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
_______________________________________ TestSOCKS5Client.test_loginAuthAccepted _______________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuthAccepted>

    def test_loginAuthAccepted(self):
>       fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')})

test_client.py:140: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c985b03c8>, methods = {'\x02': ('spam', 'eggs')}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
________________________________________ TestSOCKS5Client.test_loginAuthFailed ________________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuthFailed>

    def test_loginAuthFailed(self):
>       fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')})

test_client.py:147: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c986814e0>, methods = {'\x02': ('spam', 'eggs')}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
_______________________________________ TestSOCKS5Client.test_protocolSwitching _______________________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_protocolSwitching>

    def test_protocolSwitching(self):
>       fac, proto = self.makeProto()

test_client.py:245: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c97e56748>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
__________________________ TestSOCKS5Client.test_protocolSwitchingWithoutAProtocolAttribute ___________________________

self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_protocolSwitchingWithoutAProtocolAttribute>

    def test_protocolSwitchingWithoutAProtocolAttribute(self):
>       fac, proto = self.makeProto()

test_client.py:240: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:111: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:126: in prepareParsing
    self.sender.sendAuthMethods(self.factory.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98af0d30>, methods = {'\x00': ()}

    def sendAuthMethods(self, methods):
        self.transport.write(
>           struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods))
E       TypeError: can't concat str to bytes

../client.py:88: TypeError
___________________________________________ TestSOCKS4Client.test_buffering ___________________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_buffering>

    def test_buffering(self):
>       fac, proto = self.makeProto()

test_client.py:291: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c9815a2e8>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
________________________________ TestSOCKS4Client.test_connectionLostAfterNegotiation _________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostAfterNegotiation>

    def test_connectionLostAfterNegotiation(self):
>       fac, proto = self.makeProto()

test_client.py:308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c9765d6a0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
__________________________ TestSOCKS4Client.test_connectionLostAfterNegotiationWithSomeBytes __________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostAfterNegotiationWithSomeBytes>

    def test_connectionLostAfterNegotiationWithSomeBytes(self):
>       fac, proto = self.makeProto()

test_client.py:314: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98ad1470>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
______________________________________ TestSOCKS4Client.test_connectionLostEarly ______________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostEarly>

    def test_connectionLostEarly(self):
        wholeRequest = '\x00\x5a\x00\x00\x00\x00\x00\x00'
>       for e in xrange(len(wholeRequest)):
E       NameError: name 'xrange' is not defined

test_client.py:298: NameError
____________________________________ TestSOCKS4Client.test_connectionRequestError _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionRequestError>

    def test_connectionRequestError(self):
>       fac, proto = self.makeProto()

test_client.py:284: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b9eef0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
________________________________________ TestSOCKS4Client.test_dataSentByPeer _________________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
>       fac, proto = self.makeProto()

test_client.py:321: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c988a6e48>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
___________________________________ TestSOCKS4Client.test_handshakeEatsEnoughBytes ____________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_handshakeEatsEnoughBytes>

    def test_handshakeEatsEnoughBytes(self):
>       fac, proto = self.makeProto()

test_client.py:279: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b43e48>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_______________________________________ TestSOCKS4Client.test_initialHandshake ________________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshake>

    def test_initialHandshake(self):
>       fac, proto = self.makeProto(host='0.0.0.0', port=0x1234)

test_client.py:263: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c981af160>, host = b'\x00\x00\x00\x00', port = 4660, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_________________________________ TestSOCKS4Client.test_initialHandshakeWithHostname __________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithHostname>

    def test_initialHandshakeWithHostname(self):
>       fac, proto = self.makeProto(host='example.com', port=0x4321)

test_client.py:267: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97833a20>, host = '\x00\x00\x00\x01', port = 17185, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
___________________________________ TestSOCKS4Client.test_initialHandshakeWithUser ____________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithUser>

    def test_initialHandshakeWithUser(self):
>       fac, proto = self.makeProto(host='0.0.0.0', port=0x1234, user='spam')

test_client.py:271: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98447278>, host = b'\x00\x00\x00\x00', port = 4660, user = 'spam'

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
______________________________ TestSOCKS4Client.test_initialHandshakeWithUserAndHostname ______________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithUserAndHostname>

    def test_initialHandshakeWithUserAndHostname(self):
>       fac, proto = self.makeProto(host='spam.com', port=0x1234, user='spam')

test_client.py:275: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c986cf828>, host = '\x00\x00\x00\x01', port = 4660, user = 'spam'

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_______________________________________ TestSOCKS4Client.test_protocolSwitching _______________________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_protocolSwitching>

    def test_protocolSwitching(self):
>       fac, proto = self.makeProto()

test_client.py:333: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c982ab9b0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
__________________________ TestSOCKS4Client.test_protocolSwitchingWithoutAProtocolAttribute ___________________________

self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_protocolSwitchingWithoutAProtocolAttribute>

    def test_protocolSwitchingWithoutAProtocolAttribute(self):
>       fac, proto = self.makeProto()

test_client.py:328: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:259: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c985d3fd0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_________________________________ TestSOCKS5ClientFactory.test_anonymousAndLoginAuth __________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_anonymousAndLoginAuth>

    def test_anonymousAndLoginAuth(self):
>       fac, proto = self.makeProto('', 0, None, methods={'anonymous': (), 'login': ()})

test_client.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9819c128>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': (), 'login': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_________________________________ TestSOCKS5ClientFactory.test_buildingWrappedFactory _________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_buildingWrappedFactory>

    def test_buildingWrappedFactory(self):
        wrappedFac = FakeFactory()
>       fac, proto = self.makeProto('', 0, wrappedFac)

test_client.py:425: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c989c4cc0>, host = '', port = 0
proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c989c4320>, methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
______________________________________ TestSOCKS5ClientFactory.test_cancellation ______________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellation>

    def test_cancellation(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:366: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c977656a0>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
________________________________ TestSOCKS5ClientFactory.test_cancellationAfterFailure ________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellationAfterFailure>

    def test_cancellationAfterFailure(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9896e0b8>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_______________________________ TestSOCKS5ClientFactory.test_cancellationBeforeFailure ________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellationBeforeFailure>

    def test_cancellationBeforeFailure(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:372: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98128940>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_________________________________ TestSOCKS5ClientFactory.test_clientConnectionFailed _________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_clientConnectionFailed>

    def test_clientConnectionFailed(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9866e748>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_____________________________________ TestSOCKS5ClientFactory.test_dataSentByPeer _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
        wrappedFac = FakeFactory()
>       fac, proto = self.makeProto('', 0, wrappedFac)

test_client.py:438: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9809f1d0>, host = '', port = 0
proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c9809fa90>, methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_____________________________________ TestSOCKS5ClientFactory.test_defaultFactory _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_defaultFactory>

    def test_defaultFactory(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:395: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c988a65c0>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_____________________________________ TestSOCKS5ClientFactory.test_justLoginAuth ______________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_justLoginAuth>

    def test_justLoginAuth(self):
>       fac, proto = self.makeProto('', 0, None, methods={'login': ()})

test_client.py:403: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98355898>, host = '', port = 0, proxiedFactory = None
methods = {'login': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_______________________________________ TestSOCKS5ClientFactory.test_loginAuth ________________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_loginAuth>

    def test_loginAuth(self):
>       fac, proto = self.makeProto('', 0, None, methods={'login': ('spam', 'eggs')})

test_client.py:411: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c987a1780>, host = '', port = 0, proxiedFactory = None
methods = {'login': ('spam', 'eggs')}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
___________________________________ TestSOCKS5ClientFactory.test_loginAuthAccepted ____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_loginAuthAccepted>

    def test_loginAuthAccepted(self):
>       fac, proto = self.makeProto('', 0, None, methods={'login': ('spam', 'eggs')})

test_client.py:417: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c987bddd8>, host = '', port = 0, proxiedFactory = None
methods = {'login': ('spam', 'eggs')}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
______________________________ TestSOCKS5ClientFactory.test_noProtocolFromWrappedFactory ______________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_noProtocolFromWrappedFactory>

    def test_noProtocolFromWrappedFactory(self):
        wrappedFac = FakeFactory(returnNoProtocol=True)
>       fac, proto = self.makeProto('', 0, wrappedFac)

test_client.py:431: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:358: in makeProto
    fac = self.factory(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c985832b0>, host = '', port = 0
proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c985830f0>, methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_________________________________ TestSOCKS4ClientFactory.test_buildingWrappedFactory _________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_buildingWrappedFactory>

    def test_buildingWrappedFactory(self):
        wrappedFac = FakeFactory()
>       fac, proto = self.makeProto('127.0.0.1', 0, wrappedFac)

test_client.py:462: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98615400>, host = b'\x7f\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
______________________________________ TestSOCKS4ClientFactory.test_cancellation ______________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellation>

    def test_cancellation(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:366: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97e56828>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
________________________________ TestSOCKS4ClientFactory.test_cancellationAfterFailure ________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellationAfterFailure>

    def test_cancellationAfterFailure(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98553518>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_______________________________ TestSOCKS4ClientFactory.test_cancellationBeforeFailure ________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellationBeforeFailure>

    def test_cancellationBeforeFailure(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:372: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b9eda0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_________________________________ TestSOCKS4ClientFactory.test_clientConnectionFailed _________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_clientConnectionFailed>

    def test_clientConnectionFailed(self):
>       fac, proto = self.makeProto('', 0, None)

test_client.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c976d8278>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_____________________________________ TestSOCKS4ClientFactory.test_dataSentByPeer _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
        wrappedFac = FakeFactory()
>       fac, proto = self.makeProto('', 0, wrappedFac)

test_client.py:475: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97a6bdd8>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_____________________________________ TestSOCKS4ClientFactory.test_defaultFactory _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_defaultFactory>

    def test_defaultFactory(self):
>       fac, proto = self.makeProto('127.0.0.1', 0, None)

test_client.py:449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c984423c8>, host = b'\x7f\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_____________________________________ TestSOCKS4ClientFactory.test_differentUser ______________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_differentUser>

    def test_differentUser(self):
>       fac, proto = self.makeProto('127.0.0.1', 0, None, 'spam')

test_client.py:457: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97691cc0>, host = b'\x7f\x00\x00\x01', port = 0, user = 'spam'

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
________________________________________ TestSOCKS4ClientFactory.test_hostname ________________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_hostname>

    def test_hostname(self):
>       fac, proto = self.makeProto('spam.com', 0, None)

test_client.py:453: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98805668>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_______________________________________ TestSOCKS4ClientFactory.test_invalidIPs _______________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_invalidIPs>

    def test_invalidIPs(self):
>       self.assertRaises(ValueError, client.SOCKS4ClientFactory, '0.0.0.1', 0, None)

test_client.py:482: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:421: in assertRaises
    return context._handle(lambda: f(*args, **kwargs))
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:315: in _handle
    self._returnValue = obj()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:331: in __exit__
    self._expectedName, self._returnValue)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_invalidIPs>
msg = 'ValueError not raised (<txsocksx.client.SOCKS4ClientFactory object at 0x7f9c985c86d8> returned)'

    def fail(self, msg=None):
        """
        Absolutely fail the test.  Do not pass go, do not collect $200.
    
        @param msg: the message that will be displayed as the reason for the
        failure
        """
>       raise self.failureException(msg)
E       twisted.trial.unittest.FailTest: ValueError not raised (<txsocksx.client.SOCKS4ClientFactory object at 0x7f9c985c86d8> returned)

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:375: FailTest
______________________________ TestSOCKS4ClientFactory.test_noProtocolFromWrappedFactory ______________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_noProtocolFromWrappedFactory>

    def test_noProtocolFromWrappedFactory(self):
        wrappedFac = FakeFactory(returnNoProtocol=True)
>       fac, proto = self.makeProto('', 0, wrappedFac)

test_client.py:468: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_client.py:362: in makeProto
    proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97670e48>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_________________________________ TestSOCKS5ClientEndpoint.test_anonymousAndLoginAuth _________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_anonymousAndLoginAuth>

    def test_anonymousAndLoginAuth(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy, methods={'anonymous': (), 'login': ()})
>       endpoint.connect(None)

test_client.py:502: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c985d3550>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': (), 'login': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
________________________________ TestSOCKS5ClientEndpoint.test_buildingWrappedFactory _________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_buildingWrappedFactory>

    def test_buildingWrappedFactory(self):
        wrappedFac = FakeFactory()
        proxy = FakeEndpoint()
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy)
>       d = endpoint.connect(wrappedFac)

test_client.py:519: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97e9b438>, host = '', port = 0
proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c97e9b1d0>, methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
________________________________ TestSOCKS5ClientEndpoint.test_clientConnectionFailed _________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_clientConnectionFailed>

    def test_clientConnectionFailed(self):
        proxy = FakeEndpoint(failure=connectionRefusedFailure)
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy)
>       d = endpoint.connect(None)

test_client.py:490: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9809fe80>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
____________________________________ TestSOCKS5ClientEndpoint.test_dataSentByPeer _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
        wrappedFac = FakeFactory()
        proxy = FakeEndpoint()
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy)
>       endpoint.connect(wrappedFac)

test_client.py:529: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97691278>, host = '', port = 0
proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c98b60438>, methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
____________________________________ TestSOCKS5ClientEndpoint.test_defaultFactory _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_defaultFactory>

    def test_defaultFactory(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy)
>       endpoint.connect(None)

test_client.py:496: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97e861d0>, host = '', port = 0, proxiedFactory = None
methods = {'anonymous': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
_____________________________________ TestSOCKS5ClientEndpoint.test_justLoginAuth _____________________________________

self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_justLoginAuth>

    def test_justLoginAuth(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS5ClientEndpoint('', 0, proxy, methods={'login': ()})
>       endpoint.connect(None)

test_client.py:508: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:242: in connect
    proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98725780>, host = '', port = 0, proxiedFactory = None
methods = {'login': ()}

    def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}):
        if not methods:
            raise ValueError('no auth methods were specified')
        self.host = host
        self.port = port
        self.proxiedFactory = proxiedFactory
        self.methods = dict(
            (self.authMethodMap[method], value)
>           for method, value in methods.iteritems())
E       AttributeError: 'dict' object has no attribute 'iteritems'

../client.py:180: AttributeError
________________________________ TestSOCKS4ClientEndpoint.test_buildingWrappedFactory _________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_buildingWrappedFactory>

    def test_buildingWrappedFactory(self):
        wrappedFac = FakeFactory()
        proxy = FakeEndpoint()
        endpoint = client.SOCKS4ClientEndpoint('', 0, proxy)
>       d = endpoint.connect(wrappedFac)

test_client.py:565: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:351: in connect
    d = self.proxyEndpoint.connect(proxyFac)
util.py:28: in connect
    self.proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c985e6390>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
____________________________________ TestSOCKS4ClientEndpoint.test_dataSentByPeer _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_dataSentByPeer>

    def test_dataSentByPeer(self):
        wrappedFac = FakeFactory()
        proxy = FakeEndpoint()
        endpoint = client.SOCKS4ClientEndpoint('', 0, proxy)
>       endpoint.connect(wrappedFac)

test_client.py:575: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:351: in connect
    d = self.proxyEndpoint.connect(proxyFac)
util.py:28: in connect
    self.proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c982ab400>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
____________________________________ TestSOCKS4ClientEndpoint.test_defaultFactory _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_defaultFactory>

    def test_defaultFactory(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS4ClientEndpoint('127.0.0.1', 0, proxy)
>       endpoint.connect(None)

test_client.py:546: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:351: in connect
    d = self.proxyEndpoint.connect(proxyFac)
util.py:28: in connect
    self.proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98447470>, host = b'\x7f\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_____________________________________ TestSOCKS4ClientEndpoint.test_differentUser _____________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_differentUser>

    def test_differentUser(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS4ClientEndpoint('127.0.0.1', 0, proxy, 'spam')
>       endpoint.connect(None)

test_client.py:558: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:351: in connect
    d = self.proxyEndpoint.connect(proxyFac)
util.py:28: in connect
    self.proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98047b70>, host = b'\x7f\x00\x00\x01', port = 0, user = 'spam'

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
_______________________________________ TestSOCKS4ClientEndpoint.test_hostname ________________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_hostname>

    def test_hostname(self):
        proxy = FakeEndpoint()
        endpoint = client.SOCKS4ClientEndpoint('spam.com', 0, proxy)
>       endpoint.connect(None)

test_client.py:552: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../client.py:351: in connect
    d = self.proxyEndpoint.connect(proxyFac)
util.py:28: in connect
    self.proto.makeConnection(transport)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection
    self.connectionMade()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade
    self.receiver.prepareParsing(self)
../client.py:272: in prepareParsing
    self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97e6bbe0>, host = '\x00\x00\x00\x01', port = 0, user = ''

    def sendRequest(self, host, port, user):
        data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port)
        try:
            host = socket.inet_pton(socket.AF_INET, host)
        except socket.error:
            host, suffix = '\0\0\0\1', host + '\0'
        else:
            suffix = ''
>       self.transport.write(data + host + user + '\0' + suffix)
E       TypeError: can't concat str to bytes

../client.py:260: TypeError
______________________________________ TestSOCKS4ClientEndpoint.test_invalidIPs _______________________________________

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_invalidIPs>

    def test_invalidIPs(self):
>       self.assertRaises(ValueError, client.SOCKS4ClientEndpoint, '0.0.0.1', 0, None)

test_client.py:582: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:421: in assertRaises
    return context._handle(lambda: f(*args, **kwargs))
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:315: in _handle
    self._returnValue = obj()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:331: in __exit__
    self._expectedName, self._returnValue)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_invalidIPs>
msg = 'ValueError not raised (<txsocksx.client.SOCKS4ClientEndpoint object at 0x7f9c988a60f0> returned)'

    def fail(self, msg=None):
        """
        Absolutely fail the test.  Do not pass go, do not collect $200.
    
        @param msg: the message that will be displayed as the reason for the
        failure
        """
>       raise self.failureException(msg)
E       twisted.trial.unittest.FailTest: ValueError not raised (<txsocksx.client.SOCKS4ClientEndpoint object at 0x7f9c988a60f0> returned)

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:375: FailTest
___________________________________________ TestGrammar.test_SOCKS4Request ____________________________________________

self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4Request>

    def test_SOCKS4Request(self):
        parse = stringParserFromRule('SOCKS4Request')
>       self.assertEqual(parse('\x04\x01\x01\x00\x7f\x00\x00\x01spam\x00'),
                         ('tcp-connect', 256, '127.0.0.1', 'spam'))

test_grammar.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_grammar.py:15: in parseString
    return getattr(grammar(s), rule)()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule
    ret, err = self._grammar.apply(name, *args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply
    val, err = self._apply(r, ruleName, args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:198: in rule_SOCKS4Request
    _G_apply_61, lastError = self._apply(self.rule_SOCKS4aHostUser, "SOCKS4aHostUser", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:178: in rule_SOCKS4aHostUser
    _G_or_57, lastError = self._or([_G_or_44, _G_or_55])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or
    ret, err = f()
/pymeta_generated_code/pymeta_grammar__Grammar.py:175: in _G_or_55
    _G_apply_56, lastError = self._apply(self.rule_SOCKS4HostUser, "SOCKS4HostUser", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:129: in rule_SOCKS4HostUser
    _G_apply_40, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address
    _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: a bytes-like object is required, not 'str'

<string>:1: TypeError
___________________________________________ TestGrammar.test_SOCKS4Response ___________________________________________

self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4Response>

    def test_SOCKS4Response(self):
        parse = stringParserFromRule('SOCKS4Response')
>       self.assertEqual(parse('\x00' * 8), (0, '0.0.0.0', 0))

test_grammar.py:43: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_grammar.py:15: in parseString
    return getattr(grammar(s), rule)()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule
    ret, err = self._grammar.apply(name, *args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply
    val, err = self._apply(r, ruleName, args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:221: in rule_SOCKS4Response
    _G_apply_67, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address
    _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: a bytes-like object is required, not 'str'

<string>:1: TypeError
__________________________________________ TestGrammar.test_SOCKS4aHostUser ___________________________________________

self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4aHostUser>

    def test_SOCKS4aHostUser(self):
        parse = stringParserFromRule('SOCKS4aHostUser')
>       self.assertEqual(parse('\x7f\x00\x00\x01spam\x00'), ('127.0.0.1', 'spam'))

test_grammar.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_grammar.py:15: in parseString
    return getattr(grammar(s), rule)()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule
    ret, err = self._grammar.apply(name, *args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply
    val, err = self._apply(r, ruleName, args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:178: in rule_SOCKS4aHostUser
    _G_or_57, lastError = self._or([_G_or_44, _G_or_55])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or
    ret, err = f()
/pymeta_generated_code/pymeta_grammar__Grammar.py:175: in _G_or_55
    _G_apply_56, lastError = self._apply(self.rule_SOCKS4HostUser, "SOCKS4HostUser", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:129: in rule_SOCKS4HostUser
    _G_apply_40, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address
    _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: a bytes-like object is required, not 'str'

<string>:1: TypeError
___________________________________________ TestGrammar.test_SOCKS5Address ____________________________________________

self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS5Address>

    def test_SOCKS5Address(self):
        parse = stringParserFromRule('SOCKS5Address')
>       self.assertEqual(parse('\x01\x00\x00\x00\x00'), '0.0.0.0')

test_grammar.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_grammar.py:15: in parseString
    return getattr(grammar(s), rule)()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule
    ret, err = self._grammar.apply(name, *args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply
    val, err = self._apply(r, ruleName, args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:333: in rule_SOCKS5Address
    _G_or_103, lastError = self._or([_G_or_90, _G_or_95, _G_or_99])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or
    ret, err = f()
/pymeta_generated_code/pymeta_grammar__Grammar.py:305: in _G_or_90
    _G_apply_92, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address
    _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: a bytes-like object is required, not 'str'

<string>:1: TypeError
________________________________________ TestGrammar.test_SOCKS5ServerResponse ________________________________________

self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS5ServerResponse>

    def test_SOCKS5ServerResponse(self):
        parse = stringParserFromRule('SOCKS5ServerResponse')
        self.assertEqual(parse('\x05\x00\x00\x03\x00\x00\x00'), (0, '', 0))
>       self.assertEqual(parse('\x05\x01\x00\x01\x7f\x00\x00\x01\x01\x00'),
                         (1, '127.0.0.1', 256))

test_grammar.py:83: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_grammar.py:15: in parseString
    return getattr(grammar(s), rule)()
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule
    ret, err = self._grammar.apply(name, *args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply
    val, err = self._apply(r, ruleName, args)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:379: in rule_SOCKS5ServerResponse
    _G_apply_113, lastError = self._apply(self.rule_SOCKS5Address, "SOCKS5Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:333: in rule_SOCKS5Address
    _G_or_103, lastError = self._or([_G_or_90, _G_or_95, _G_or_99])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or
    ret, err = f()
/pymeta_generated_code/pymeta_grammar__Grammar.py:305: in _G_or_90
    _G_apply_92, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", [])
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply
    [rule(), self.input])
/pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address
    _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   TypeError: a bytes-like object is required, not 'str'

<string>:1: TypeError
__________________________________________ TestSOCKS5Agent.test_HTTPRequest ___________________________________________

self = <txsocksx.test.test_http.TestSOCKS5Agent testMethod=test_HTTPRequest>

    def test_HTTPRequest(self):
>       self.agent.request('GET', 'http://spam.com/eggs')

test_http.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../http.py:43: in request
    return self._wrappedAgent.request(*a, **kw)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request
    parsedURI = URI.fromBytes(uri)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes
    scheme, netloc, path, params, query, fragment = http.urlparse(uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'http://spam.com/eggs'

    def urlparse(url):
        """
        Parse an URL into six components.
    
        This is similar to C{urlparse.urlparse}, but rejects C{unicode} input
        and always produces C{bytes} output.
    
        @type url: C{bytes}
    
        @raise TypeError: The given url was a C{unicode} string instead of a
            C{bytes}.
    
        @return: The scheme, net location, path, params, query string, and fragment
            of the URL - all as C{bytes}.
        @rtype: C{ParseResultBytes}
        """
        if isinstance(url, unicode):
>           raise TypeError("url must be bytes, not unicode")
E           TypeError: url must be bytes, not unicode

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError
__________________________________________ TestSOCKS5Agent.test_HTTPSRequest __________________________________________

self = <txsocksx.test.test_http.TestSOCKS5Agent testMethod=test_HTTPSRequest>

    def test_HTTPSRequest(self):
>       self.agent.request('GET', 'https://spam.com/eggs')

test_http.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../http.py:43: in request
    return self._wrappedAgent.request(*a, **kw)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request
    parsedURI = URI.fromBytes(uri)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes
    scheme, netloc, path, params, query, fragment = http.urlparse(uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'https://spam.com/eggs'

    def urlparse(url):
        """
        Parse an URL into six components.
    
        This is similar to C{urlparse.urlparse}, but rejects C{unicode} input
        and always produces C{bytes} output.
    
        @type url: C{bytes}
    
        @raise TypeError: The given url was a C{unicode} string instead of a
            C{bytes}.
    
        @return: The scheme, net location, path, params, query string, and fragment
            of the URL - all as C{bytes}.
        @rtype: C{ParseResultBytes}
        """
        if isinstance(url, unicode):
>           raise TypeError("url must be bytes, not unicode")
E           TypeError: url must be bytes, not unicode

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError
__________________________________________ TestSOCKS4Agent.test_HTTP4Request __________________________________________

self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTP4Request>

    def test_HTTP4Request(self):
>       self.agent.request('GET', 'http://127.0.0.1/eggs')

test_http.py:59: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../http.py:43: in request
    return self._wrappedAgent.request(*a, **kw)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request
    parsedURI = URI.fromBytes(uri)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes
    scheme, netloc, path, params, query, fragment = http.urlparse(uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'http://127.0.0.1/eggs'

    def urlparse(url):
        """
        Parse an URL into six components.
    
        This is similar to C{urlparse.urlparse}, but rejects C{unicode} input
        and always produces C{bytes} output.
    
        @type url: C{bytes}
    
        @raise TypeError: The given url was a C{unicode} string instead of a
            C{bytes}.
    
        @return: The scheme, net location, path, params, query string, and fragment
            of the URL - all as C{bytes}.
        @rtype: C{ParseResultBytes}
        """
        if isinstance(url, unicode):
>           raise TypeError("url must be bytes, not unicode")
E           TypeError: url must be bytes, not unicode

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError
_________________________________________ TestSOCKS4Agent.test_HTTP4aRequest __________________________________________

self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTP4aRequest>

    def test_HTTP4aRequest(self):
>       self.agent.request('GET', 'http://spam.com/eggs')

test_http.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../http.py:43: in request
    return self._wrappedAgent.request(*a, **kw)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request
    parsedURI = URI.fromBytes(uri)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes
    scheme, netloc, path, params, query, fragment = http.urlparse(uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'http://spam.com/eggs'

    def urlparse(url):
        """
        Parse an URL into six components.
    
        This is similar to C{urlparse.urlparse}, but rejects C{unicode} input
        and always produces C{bytes} output.
    
        @type url: C{bytes}
    
        @raise TypeError: The given url was a C{unicode} string instead of a
            C{bytes}.
    
        @return: The scheme, net location, path, params, query string, and fragment
            of the URL - all as C{bytes}.
        @rtype: C{ParseResultBytes}
        """
        if isinstance(url, unicode):
>           raise TypeError("url must be bytes, not unicode")
E           TypeError: url must be bytes, not unicode

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError
__________________________________________ TestSOCKS4Agent.test_HTTPSRequest __________________________________________

self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTPSRequest>

    def test_HTTPSRequest(self):
>       self.agent.request('GET', 'https://spam.com/eggs')

test_http.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../http.py:43: in request
    return self._wrappedAgent.request(*a, **kw)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request
    parsedURI = URI.fromBytes(uri)
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes
    scheme, netloc, path, params, query, fragment = http.urlparse(uri)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

url = 'https://spam.com/eggs'

    def urlparse(url):
        """
        Parse an URL into six components.
    
        This is similar to C{urlparse.urlparse}, but rejects C{unicode} input
        and always produces C{bytes} output.
    
        @type url: C{bytes}
    
        @raise TypeError: The given url was a C{unicode} string instead of a
            C{bytes}.
    
        @return: The scheme, net location, path, params, query string, and fragment
            of the URL - all as C{bytes}.
        @rtype: C{ParseResultBytes}
        """
        if isinstance(url, unicode):
>           raise TypeError("url must be bytes, not unicode")
E           TypeError: url must be bytes, not unicode

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError
_________________________________ TLSWrapClientEndpointTestCase.test_methodsAvailable _________________________________

self = <txsocksx.test.test_tls.TLSWrapClientEndpointTestCase testMethod=test_methodsAvailable>

    def test_methodsAvailable(self):
        """
        Methods defined on the Protocol are accessible from the Protocol
        returned from connect's Deferred.
        """
        proto = self.successResultOf(self.wrapper.connect(self.factory))
>       proto.sendString('spam')

test_tls.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:163: in sendString
    self.transport.write(_formatNetstring(string))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

data = 'spam'

    def _formatNetstring(data):
>       return b''.join([str(len(data)).encode("ascii"), b':', data, b','])
E       TypeError: sequence item 2: expected a bytes-like object, str found

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:30: TypeError
_________________________________ TLSWrapClientEndpointTestCase.test_wrappingBehavior _________________________________

self = <txsocksx.test.test_tls.TLSWrapClientEndpointTestCase testMethod=test_wrappingBehavior>

    def test_wrappingBehavior(self):
        """
        Any modifications performed by the underlying ProtocolWrapper
        propagate through to the wrapped Protocol.
        """
        proto = self.successResultOf(self.wrapper.connect(self.factory))
>       self.endpoint.proto.dataReceived('5:hello,')

test_tls.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
util.py:35: in dataReceived
    policies.ProtocolWrapper.dataReceived(self, data.upper())
/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/policies.py:120: in dataReceived
    self.wrappedProtocol.dataReceived(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <txsocksx.test.test_tls.NetstringTracker object at 0x7f9c976a2550>, data = '5:HELLO,'

    def dataReceived(self, data):
        """
        Receives some characters of a netstring.
    
        Whenever a complete netstring is received, this method extracts
        its payload and calls L{stringReceived} to process it.
    
        @param data: A chunk of data representing a (possibly partial)
            netstring
        @type data: C{bytes}
        """
>       self._remainingData += data
E       TypeError: can't concat str to bytes

/home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:177: TypeError
======================================== 75 failed, 11 passed in 4.88 seconds =========================================
(txsocksx) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:34}
The tests fail majestically. ``` anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:11} $ txsocksx_venv (txsocksx) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:25} $ pytest ================================================= test session starts ================================================= platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile: collected 86 items test_client.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFF.F.FFFFF [ 76%] test_grammar.py .FFFF....F [ 88%] test_http.py FFFFF [ 94%] test_tls.py ...FF [100%] ====================================================== FAILURES ======================================================= _________________________________________ TestSOCKS5Client.test_authAddition __________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_authAddition> def test_authAddition(self): fac, proto = self.makeProto( > _protoClass=AdditionAuthSOCKS5Client, methods={'A': ('x', 'y')}) test_client.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c97eefdd8>, methods = {'A': ('x', 'y')} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ___________________________________________ TestSOCKS5Client.test_buffering ___________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_buffering> def test_buffering(self): > fac, proto = self.makeProto() test_client.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c986cf5c0>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ________________________________ TestSOCKS5Client.test_connectionLostAfterNegotiation _________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionLostAfterNegotiation> def test_connectionLostAfterNegotiation(self): > fac, proto = self.makeProto() test_client.py:209: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c9765dda0>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ______________________________________ TestSOCKS5Client.test_connectionLostEarly ______________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionLostEarly> def test_connectionLostEarly(self): wholeRequest = '\x05\x00\x05\x00\x00\x01444422' > for e in xrange(len(wholeRequest)): E NameError: name 'xrange' is not defined test_client.py:199: NameError _______________________________________ TestSOCKS5Client.test_connectionRequest _______________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionRequest> def test_connectionRequest(self): > fac, proto = self.makeProto('host', 0x47) test_client.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98583550>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ____________________________________ TestSOCKS5Client.test_connectionRequestError _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_connectionRequestError> def test_connectionRequestError(self): > fac, proto = self.makeProto() test_client.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98ad1400>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ________________________________________ TestSOCKS5Client.test_dataSentByPeer _________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): > fac, proto = self.makeProto() test_client.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c989520f0>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError _____________________________________ TestSOCKS5Client.test_failedMethodSelection _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_failedMethodSelection> def test_failedMethodSelection(self): > fac, proto = self.makeProto() test_client.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98834a90>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ___________________________________ TestSOCKS5Client.test_handshakeEatsEnoughBytes ____________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_handshakeEatsEnoughBytes> def test_handshakeEatsEnoughBytes(self): > fac, proto = self.makeProto() test_client.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98691320>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError _______________________________________ TestSOCKS5Client.test_initialHandshake ________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_initialHandshake> def test_initialHandshake(self): > fac, proto = self.makeProto() test_client.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98ad1470>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ___________________________________________ TestSOCKS5Client.test_loginAuth ___________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuth> def test_loginAuth(self): > fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')}) test_client.py:134: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c982bd1d0>, methods = {'\x02': ('spam', 'eggs')} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError _______________________________________ TestSOCKS5Client.test_loginAuthAccepted _______________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuthAccepted> def test_loginAuthAccepted(self): > fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')}) test_client.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c985b03c8>, methods = {'\x02': ('spam', 'eggs')} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ________________________________________ TestSOCKS5Client.test_loginAuthFailed ________________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_loginAuthFailed> def test_loginAuthFailed(self): > fac, proto = self.makeProto(methods={c.AUTH_LOGIN: ('spam', 'eggs')}) test_client.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c986814e0>, methods = {'\x02': ('spam', 'eggs')} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError _______________________________________ TestSOCKS5Client.test_protocolSwitching _______________________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_protocolSwitching> def test_protocolSwitching(self): > fac, proto = self.makeProto() test_client.py:245: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c97e56748>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError __________________________ TestSOCKS5Client.test_protocolSwitchingWithoutAProtocolAttribute ___________________________ self = <txsocksx.test.test_client.TestSOCKS5Client testMethod=test_protocolSwitchingWithoutAProtocolAttribute> def test_protocolSwitchingWithoutAProtocolAttribute(self): > fac, proto = self.makeProto() test_client.py:240: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:111: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:126: in prepareParsing self.sender.sendAuthMethods(self.factory.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5Sender object at 0x7f9c98af0d30>, methods = {'\x00': ()} def sendAuthMethods(self, methods): self.transport.write( > struct.pack('!BB', c.VER_SOCKS5, len(methods)) + ''.join(methods)) E TypeError: can't concat str to bytes ../client.py:88: TypeError ___________________________________________ TestSOCKS4Client.test_buffering ___________________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_buffering> def test_buffering(self): > fac, proto = self.makeProto() test_client.py:291: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c9815a2e8>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ________________________________ TestSOCKS4Client.test_connectionLostAfterNegotiation _________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostAfterNegotiation> def test_connectionLostAfterNegotiation(self): > fac, proto = self.makeProto() test_client.py:308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c9765d6a0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError __________________________ TestSOCKS4Client.test_connectionLostAfterNegotiationWithSomeBytes __________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostAfterNegotiationWithSomeBytes> def test_connectionLostAfterNegotiationWithSomeBytes(self): > fac, proto = self.makeProto() test_client.py:314: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98ad1470>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ______________________________________ TestSOCKS4Client.test_connectionLostEarly ______________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionLostEarly> def test_connectionLostEarly(self): wholeRequest = '\x00\x5a\x00\x00\x00\x00\x00\x00' > for e in xrange(len(wholeRequest)): E NameError: name 'xrange' is not defined test_client.py:298: NameError ____________________________________ TestSOCKS4Client.test_connectionRequestError _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_connectionRequestError> def test_connectionRequestError(self): > fac, proto = self.makeProto() test_client.py:284: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b9eef0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ________________________________________ TestSOCKS4Client.test_dataSentByPeer _________________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): > fac, proto = self.makeProto() test_client.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c988a6e48>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ___________________________________ TestSOCKS4Client.test_handshakeEatsEnoughBytes ____________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_handshakeEatsEnoughBytes> def test_handshakeEatsEnoughBytes(self): > fac, proto = self.makeProto() test_client.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b43e48>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _______________________________________ TestSOCKS4Client.test_initialHandshake ________________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshake> def test_initialHandshake(self): > fac, proto = self.makeProto(host='0.0.0.0', port=0x1234) test_client.py:263: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c981af160>, host = b'\x00\x00\x00\x00', port = 4660, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _________________________________ TestSOCKS4Client.test_initialHandshakeWithHostname __________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithHostname> def test_initialHandshakeWithHostname(self): > fac, proto = self.makeProto(host='example.com', port=0x4321) test_client.py:267: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97833a20>, host = '\x00\x00\x00\x01', port = 17185, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ___________________________________ TestSOCKS4Client.test_initialHandshakeWithUser ____________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithUser> def test_initialHandshakeWithUser(self): > fac, proto = self.makeProto(host='0.0.0.0', port=0x1234, user='spam') test_client.py:271: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98447278>, host = b'\x00\x00\x00\x00', port = 4660, user = 'spam' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ______________________________ TestSOCKS4Client.test_initialHandshakeWithUserAndHostname ______________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_initialHandshakeWithUserAndHostname> def test_initialHandshakeWithUserAndHostname(self): > fac, proto = self.makeProto(host='spam.com', port=0x1234, user='spam') test_client.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c986cf828>, host = '\x00\x00\x00\x01', port = 4660, user = 'spam' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _______________________________________ TestSOCKS4Client.test_protocolSwitching _______________________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_protocolSwitching> def test_protocolSwitching(self): > fac, proto = self.makeProto() test_client.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c982ab9b0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError __________________________ TestSOCKS4Client.test_protocolSwitchingWithoutAProtocolAttribute ___________________________ self = <txsocksx.test.test_client.TestSOCKS4Client testMethod=test_protocolSwitchingWithoutAProtocolAttribute> def test_protocolSwitchingWithoutAProtocolAttribute(self): > fac, proto = self.makeProto() test_client.py:328: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:259: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c985d3fd0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _________________________________ TestSOCKS5ClientFactory.test_anonymousAndLoginAuth __________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_anonymousAndLoginAuth> def test_anonymousAndLoginAuth(self): > fac, proto = self.makeProto('', 0, None, methods={'anonymous': (), 'login': ()}) test_client.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9819c128>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': (), 'login': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _________________________________ TestSOCKS5ClientFactory.test_buildingWrappedFactory _________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_buildingWrappedFactory> def test_buildingWrappedFactory(self): wrappedFac = FakeFactory() > fac, proto = self.makeProto('', 0, wrappedFac) test_client.py:425: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c989c4cc0>, host = '', port = 0 proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c989c4320>, methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ______________________________________ TestSOCKS5ClientFactory.test_cancellation ______________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellation> def test_cancellation(self): > fac, proto = self.makeProto('', 0, None) test_client.py:366: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c977656a0>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ________________________________ TestSOCKS5ClientFactory.test_cancellationAfterFailure ________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellationAfterFailure> def test_cancellationAfterFailure(self): > fac, proto = self.makeProto('', 0, None) test_client.py:379: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9896e0b8>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _______________________________ TestSOCKS5ClientFactory.test_cancellationBeforeFailure ________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_cancellationBeforeFailure> def test_cancellationBeforeFailure(self): > fac, proto = self.makeProto('', 0, None) test_client.py:372: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98128940>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _________________________________ TestSOCKS5ClientFactory.test_clientConnectionFailed _________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_clientConnectionFailed> def test_clientConnectionFailed(self): > fac, proto = self.makeProto('', 0, None) test_client.py:386: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9866e748>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _____________________________________ TestSOCKS5ClientFactory.test_dataSentByPeer _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): wrappedFac = FakeFactory() > fac, proto = self.makeProto('', 0, wrappedFac) test_client.py:438: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9809f1d0>, host = '', port = 0 proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c9809fa90>, methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _____________________________________ TestSOCKS5ClientFactory.test_defaultFactory _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_defaultFactory> def test_defaultFactory(self): > fac, proto = self.makeProto('', 0, None) test_client.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c988a65c0>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _____________________________________ TestSOCKS5ClientFactory.test_justLoginAuth ______________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_justLoginAuth> def test_justLoginAuth(self): > fac, proto = self.makeProto('', 0, None, methods={'login': ()}) test_client.py:403: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98355898>, host = '', port = 0, proxiedFactory = None methods = {'login': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _______________________________________ TestSOCKS5ClientFactory.test_loginAuth ________________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_loginAuth> def test_loginAuth(self): > fac, proto = self.makeProto('', 0, None, methods={'login': ('spam', 'eggs')}) test_client.py:411: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c987a1780>, host = '', port = 0, proxiedFactory = None methods = {'login': ('spam', 'eggs')} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ___________________________________ TestSOCKS5ClientFactory.test_loginAuthAccepted ____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_loginAuthAccepted> def test_loginAuthAccepted(self): > fac, proto = self.makeProto('', 0, None, methods={'login': ('spam', 'eggs')}) test_client.py:417: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c987bddd8>, host = '', port = 0, proxiedFactory = None methods = {'login': ('spam', 'eggs')} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ______________________________ TestSOCKS5ClientFactory.test_noProtocolFromWrappedFactory ______________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientFactory testMethod=test_noProtocolFromWrappedFactory> def test_noProtocolFromWrappedFactory(self): wrappedFac = FakeFactory(returnNoProtocol=True) > fac, proto = self.makeProto('', 0, wrappedFac) test_client.py:431: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:358: in makeProto fac = self.factory(*a, **kw) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c985832b0>, host = '', port = 0 proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c985830f0>, methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _________________________________ TestSOCKS4ClientFactory.test_buildingWrappedFactory _________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_buildingWrappedFactory> def test_buildingWrappedFactory(self): wrappedFac = FakeFactory() > fac, proto = self.makeProto('127.0.0.1', 0, wrappedFac) test_client.py:462: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98615400>, host = b'\x7f\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ______________________________________ TestSOCKS4ClientFactory.test_cancellation ______________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellation> def test_cancellation(self): > fac, proto = self.makeProto('', 0, None) test_client.py:366: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97e56828>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ________________________________ TestSOCKS4ClientFactory.test_cancellationAfterFailure ________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellationAfterFailure> def test_cancellationAfterFailure(self): > fac, proto = self.makeProto('', 0, None) test_client.py:379: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98553518>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _______________________________ TestSOCKS4ClientFactory.test_cancellationBeforeFailure ________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_cancellationBeforeFailure> def test_cancellationBeforeFailure(self): > fac, proto = self.makeProto('', 0, None) test_client.py:372: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98b9eda0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _________________________________ TestSOCKS4ClientFactory.test_clientConnectionFailed _________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_clientConnectionFailed> def test_clientConnectionFailed(self): > fac, proto = self.makeProto('', 0, None) test_client.py:386: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c976d8278>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _____________________________________ TestSOCKS4ClientFactory.test_dataSentByPeer _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): wrappedFac = FakeFactory() > fac, proto = self.makeProto('', 0, wrappedFac) test_client.py:475: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97a6bdd8>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _____________________________________ TestSOCKS4ClientFactory.test_defaultFactory _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_defaultFactory> def test_defaultFactory(self): > fac, proto = self.makeProto('127.0.0.1', 0, None) test_client.py:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c984423c8>, host = b'\x7f\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _____________________________________ TestSOCKS4ClientFactory.test_differentUser ______________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_differentUser> def test_differentUser(self): > fac, proto = self.makeProto('127.0.0.1', 0, None, 'spam') test_client.py:457: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97691cc0>, host = b'\x7f\x00\x00\x01', port = 0, user = 'spam' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ________________________________________ TestSOCKS4ClientFactory.test_hostname ________________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_hostname> def test_hostname(self): > fac, proto = self.makeProto('spam.com', 0, None) test_client.py:453: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98805668>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _______________________________________ TestSOCKS4ClientFactory.test_invalidIPs _______________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_invalidIPs> def test_invalidIPs(self): > self.assertRaises(ValueError, client.SOCKS4ClientFactory, '0.0.0.1', 0, None) test_client.py:482: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:421: in assertRaises return context._handle(lambda: f(*args, **kwargs)) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:315: in _handle self._returnValue = obj() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:331: in __exit__ self._expectedName, self._returnValue) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_invalidIPs> msg = 'ValueError not raised (<txsocksx.client.SOCKS4ClientFactory object at 0x7f9c985c86d8> returned)' def fail(self, msg=None): """ Absolutely fail the test. Do not pass go, do not collect $200. @param msg: the message that will be displayed as the reason for the failure """ > raise self.failureException(msg) E twisted.trial.unittest.FailTest: ValueError not raised (<txsocksx.client.SOCKS4ClientFactory object at 0x7f9c985c86d8> returned) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:375: FailTest ______________________________ TestSOCKS4ClientFactory.test_noProtocolFromWrappedFactory ______________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientFactory testMethod=test_noProtocolFromWrappedFactory> def test_noProtocolFromWrappedFactory(self): wrappedFac = FakeFactory(returnNoProtocol=True) > fac, proto = self.makeProto('', 0, wrappedFac) test_client.py:468: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_client.py:362: in makeProto proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97670e48>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _________________________________ TestSOCKS5ClientEndpoint.test_anonymousAndLoginAuth _________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_anonymousAndLoginAuth> def test_anonymousAndLoginAuth(self): proxy = FakeEndpoint() endpoint = client.SOCKS5ClientEndpoint('', 0, proxy, methods={'anonymous': (), 'login': ()}) > endpoint.connect(None) test_client.py:502: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c985d3550>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': (), 'login': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ________________________________ TestSOCKS5ClientEndpoint.test_buildingWrappedFactory _________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_buildingWrappedFactory> def test_buildingWrappedFactory(self): wrappedFac = FakeFactory() proxy = FakeEndpoint() endpoint = client.SOCKS5ClientEndpoint('', 0, proxy) > d = endpoint.connect(wrappedFac) test_client.py:519: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97e9b438>, host = '', port = 0 proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c97e9b1d0>, methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ________________________________ TestSOCKS5ClientEndpoint.test_clientConnectionFailed _________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_clientConnectionFailed> def test_clientConnectionFailed(self): proxy = FakeEndpoint(failure=connectionRefusedFailure) endpoint = client.SOCKS5ClientEndpoint('', 0, proxy) > d = endpoint.connect(None) test_client.py:490: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c9809fe80>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ____________________________________ TestSOCKS5ClientEndpoint.test_dataSentByPeer _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): wrappedFac = FakeFactory() proxy = FakeEndpoint() endpoint = client.SOCKS5ClientEndpoint('', 0, proxy) > endpoint.connect(wrappedFac) test_client.py:529: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97691278>, host = '', port = 0 proxiedFactory = <txsocksx.test.test_client.FakeFactory object at 0x7f9c98b60438>, methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ____________________________________ TestSOCKS5ClientEndpoint.test_defaultFactory _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_defaultFactory> def test_defaultFactory(self): proxy = FakeEndpoint() endpoint = client.SOCKS5ClientEndpoint('', 0, proxy) > endpoint.connect(None) test_client.py:496: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c97e861d0>, host = '', port = 0, proxiedFactory = None methods = {'anonymous': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError _____________________________________ TestSOCKS5ClientEndpoint.test_justLoginAuth _____________________________________ self = <txsocksx.test.test_client.TestSOCKS5ClientEndpoint testMethod=test_justLoginAuth> def test_justLoginAuth(self): proxy = FakeEndpoint() endpoint = client.SOCKS5ClientEndpoint('', 0, proxy, methods={'login': ()}) > endpoint.connect(None) test_client.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:242: in connect proxyFac = SOCKS5ClientFactory(self.host, self.port, fac, self.methods) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS5ClientFactory object at 0x7f9c98725780>, host = '', port = 0, proxiedFactory = None methods = {'login': ()} def __init__(self, host, port, proxiedFactory, methods={'anonymous': ()}): if not methods: raise ValueError('no auth methods were specified') self.host = host self.port = port self.proxiedFactory = proxiedFactory self.methods = dict( (self.authMethodMap[method], value) > for method, value in methods.iteritems()) E AttributeError: 'dict' object has no attribute 'iteritems' ../client.py:180: AttributeError ________________________________ TestSOCKS4ClientEndpoint.test_buildingWrappedFactory _________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_buildingWrappedFactory> def test_buildingWrappedFactory(self): wrappedFac = FakeFactory() proxy = FakeEndpoint() endpoint = client.SOCKS4ClientEndpoint('', 0, proxy) > d = endpoint.connect(wrappedFac) test_client.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:351: in connect d = self.proxyEndpoint.connect(proxyFac) util.py:28: in connect self.proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c985e6390>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ____________________________________ TestSOCKS4ClientEndpoint.test_dataSentByPeer _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_dataSentByPeer> def test_dataSentByPeer(self): wrappedFac = FakeFactory() proxy = FakeEndpoint() endpoint = client.SOCKS4ClientEndpoint('', 0, proxy) > endpoint.connect(wrappedFac) test_client.py:575: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:351: in connect d = self.proxyEndpoint.connect(proxyFac) util.py:28: in connect self.proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c982ab400>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ____________________________________ TestSOCKS4ClientEndpoint.test_defaultFactory _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_defaultFactory> def test_defaultFactory(self): proxy = FakeEndpoint() endpoint = client.SOCKS4ClientEndpoint('127.0.0.1', 0, proxy) > endpoint.connect(None) test_client.py:546: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:351: in connect d = self.proxyEndpoint.connect(proxyFac) util.py:28: in connect self.proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98447470>, host = b'\x7f\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _____________________________________ TestSOCKS4ClientEndpoint.test_differentUser _____________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_differentUser> def test_differentUser(self): proxy = FakeEndpoint() endpoint = client.SOCKS4ClientEndpoint('127.0.0.1', 0, proxy, 'spam') > endpoint.connect(None) test_client.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:351: in connect d = self.proxyEndpoint.connect(proxyFac) util.py:28: in connect self.proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c98047b70>, host = b'\x7f\x00\x00\x01', port = 0, user = 'spam' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError _______________________________________ TestSOCKS4ClientEndpoint.test_hostname ________________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_hostname> def test_hostname(self): proxy = FakeEndpoint() endpoint = client.SOCKS4ClientEndpoint('spam.com', 0, proxy) > endpoint.connect(None) test_client.py:552: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../client.py:351: in connect d = self.proxyEndpoint.connect(proxyFac) util.py:28: in connect self.proto.makeConnection(transport) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/internet/protocol.py:514: in makeConnection self.connectionMade() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/protocol.py:38: in connectionMade self.receiver.prepareParsing(self) ../client.py:272: in prepareParsing self.sender.sendRequest(self.factory.host, self.factory.port, self.factory.user) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.client.SOCKS4Sender object at 0x7f9c97e6bbe0>, host = '\x00\x00\x00\x01', port = 0, user = '' def sendRequest(self, host, port, user): data = struct.pack('!BBH', c.VER_SOCKS4, c.CMD_CONNECT, port) try: host = socket.inet_pton(socket.AF_INET, host) except socket.error: host, suffix = '\0\0\0\1', host + '\0' else: suffix = '' > self.transport.write(data + host + user + '\0' + suffix) E TypeError: can't concat str to bytes ../client.py:260: TypeError ______________________________________ TestSOCKS4ClientEndpoint.test_invalidIPs _______________________________________ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_invalidIPs> def test_invalidIPs(self): > self.assertRaises(ValueError, client.SOCKS4ClientEndpoint, '0.0.0.1', 0, None) test_client.py:582: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:421: in assertRaises return context._handle(lambda: f(*args, **kwargs)) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:315: in _handle self._returnValue = obj() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:331: in __exit__ self._expectedName, self._returnValue) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.test.test_client.TestSOCKS4ClientEndpoint testMethod=test_invalidIPs> msg = 'ValueError not raised (<txsocksx.client.SOCKS4ClientEndpoint object at 0x7f9c988a60f0> returned)' def fail(self, msg=None): """ Absolutely fail the test. Do not pass go, do not collect $200. @param msg: the message that will be displayed as the reason for the failure """ > raise self.failureException(msg) E twisted.trial.unittest.FailTest: ValueError not raised (<txsocksx.client.SOCKS4ClientEndpoint object at 0x7f9c988a60f0> returned) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/trial/_synctest.py:375: FailTest ___________________________________________ TestGrammar.test_SOCKS4Request ____________________________________________ self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4Request> def test_SOCKS4Request(self): parse = stringParserFromRule('SOCKS4Request') > self.assertEqual(parse('\x04\x01\x01\x00\x7f\x00\x00\x01spam\x00'), ('tcp-connect', 256, '127.0.0.1', 'spam')) test_grammar.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_grammar.py:15: in parseString return getattr(grammar(s), rule)() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule ret, err = self._grammar.apply(name, *args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply val, err = self._apply(r, ruleName, args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:198: in rule_SOCKS4Request _G_apply_61, lastError = self._apply(self.rule_SOCKS4aHostUser, "SOCKS4aHostUser", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:178: in rule_SOCKS4aHostUser _G_or_57, lastError = self._or([_G_or_44, _G_or_55]) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or ret, err = f() /pymeta_generated_code/pymeta_grammar__Grammar.py:175: in _G_or_55 _G_apply_56, lastError = self._apply(self.rule_SOCKS4HostUser, "SOCKS4HostUser", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:129: in rule_SOCKS4HostUser _G_apply_40, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: a bytes-like object is required, not 'str' <string>:1: TypeError ___________________________________________ TestGrammar.test_SOCKS4Response ___________________________________________ self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4Response> def test_SOCKS4Response(self): parse = stringParserFromRule('SOCKS4Response') > self.assertEqual(parse('\x00' * 8), (0, '0.0.0.0', 0)) test_grammar.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_grammar.py:15: in parseString return getattr(grammar(s), rule)() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule ret, err = self._grammar.apply(name, *args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply val, err = self._apply(r, ruleName, args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:221: in rule_SOCKS4Response _G_apply_67, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: a bytes-like object is required, not 'str' <string>:1: TypeError __________________________________________ TestGrammar.test_SOCKS4aHostUser ___________________________________________ self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS4aHostUser> def test_SOCKS4aHostUser(self): parse = stringParserFromRule('SOCKS4aHostUser') > self.assertEqual(parse('\x7f\x00\x00\x01spam\x00'), ('127.0.0.1', 'spam')) test_grammar.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_grammar.py:15: in parseString return getattr(grammar(s), rule)() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule ret, err = self._grammar.apply(name, *args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply val, err = self._apply(r, ruleName, args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:178: in rule_SOCKS4aHostUser _G_or_57, lastError = self._or([_G_or_44, _G_or_55]) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or ret, err = f() /pymeta_generated_code/pymeta_grammar__Grammar.py:175: in _G_or_55 _G_apply_56, lastError = self._apply(self.rule_SOCKS4HostUser, "SOCKS4HostUser", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:129: in rule_SOCKS4HostUser _G_apply_40, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: a bytes-like object is required, not 'str' <string>:1: TypeError ___________________________________________ TestGrammar.test_SOCKS5Address ____________________________________________ self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS5Address> def test_SOCKS5Address(self): parse = stringParserFromRule('SOCKS5Address') > self.assertEqual(parse('\x01\x00\x00\x00\x00'), '0.0.0.0') test_grammar.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_grammar.py:15: in parseString return getattr(grammar(s), rule)() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule ret, err = self._grammar.apply(name, *args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply val, err = self._apply(r, ruleName, args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:333: in rule_SOCKS5Address _G_or_103, lastError = self._or([_G_or_90, _G_or_95, _G_or_99]) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or ret, err = f() /pymeta_generated_code/pymeta_grammar__Grammar.py:305: in _G_or_90 _G_apply_92, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: a bytes-like object is required, not 'str' <string>:1: TypeError ________________________________________ TestGrammar.test_SOCKS5ServerResponse ________________________________________ self = <txsocksx.test.test_grammar.TestGrammar testMethod=test_SOCKS5ServerResponse> def test_SOCKS5ServerResponse(self): parse = stringParserFromRule('SOCKS5ServerResponse') self.assertEqual(parse('\x05\x00\x00\x03\x00\x00\x00'), (0, '', 0)) > self.assertEqual(parse('\x05\x01\x00\x01\x7f\x00\x00\x01\x01\x00'), (1, '127.0.0.1', 256)) test_grammar.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_grammar.py:15: in parseString return getattr(grammar(s), rule)() /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/parsley.py:85: in invokeRule ret, err = self._grammar.apply(name, *args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:462: in apply val, err = self._apply(r, ruleName, args) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:379: in rule_SOCKS5ServerResponse _G_apply_113, lastError = self._apply(self.rule_SOCKS5Address, "SOCKS5Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:333: in rule_SOCKS5Address _G_or_103, lastError = self._or([_G_or_90, _G_or_95, _G_or_99]) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:598: in _or ret, err = f() /pymeta_generated_code/pymeta_grammar__Grammar.py:305: in _G_or_90 _G_apply_92, lastError = self._apply(self.rule_ipv4Address, "ipv4Address", []) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/ometa/runtime.py:495: in _apply [rule(), self.input]) /pymeta_generated_code/pymeta_grammar__Grammar.py:78: in rule_ipv4Address _G_python_25, lastError = eval(self._G_expr_24, self.globals, _locals), None _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: a bytes-like object is required, not 'str' <string>:1: TypeError __________________________________________ TestSOCKS5Agent.test_HTTPRequest ___________________________________________ self = <txsocksx.test.test_http.TestSOCKS5Agent testMethod=test_HTTPRequest> def test_HTTPRequest(self): > self.agent.request('GET', 'http://spam.com/eggs') test_http.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../http.py:43: in request return self._wrappedAgent.request(*a, **kw) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request parsedURI = URI.fromBytes(uri) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes scheme, netloc, path, params, query, fragment = http.urlparse(uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://spam.com/eggs' def urlparse(url): """ Parse an URL into six components. This is similar to C{urlparse.urlparse}, but rejects C{unicode} input and always produces C{bytes} output. @type url: C{bytes} @raise TypeError: The given url was a C{unicode} string instead of a C{bytes}. @return: The scheme, net location, path, params, query string, and fragment of the URL - all as C{bytes}. @rtype: C{ParseResultBytes} """ if isinstance(url, unicode): > raise TypeError("url must be bytes, not unicode") E TypeError: url must be bytes, not unicode /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError __________________________________________ TestSOCKS5Agent.test_HTTPSRequest __________________________________________ self = <txsocksx.test.test_http.TestSOCKS5Agent testMethod=test_HTTPSRequest> def test_HTTPSRequest(self): > self.agent.request('GET', 'https://spam.com/eggs') test_http.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../http.py:43: in request return self._wrappedAgent.request(*a, **kw) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request parsedURI = URI.fromBytes(uri) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes scheme, netloc, path, params, query, fragment = http.urlparse(uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'https://spam.com/eggs' def urlparse(url): """ Parse an URL into six components. This is similar to C{urlparse.urlparse}, but rejects C{unicode} input and always produces C{bytes} output. @type url: C{bytes} @raise TypeError: The given url was a C{unicode} string instead of a C{bytes}. @return: The scheme, net location, path, params, query string, and fragment of the URL - all as C{bytes}. @rtype: C{ParseResultBytes} """ if isinstance(url, unicode): > raise TypeError("url must be bytes, not unicode") E TypeError: url must be bytes, not unicode /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError __________________________________________ TestSOCKS4Agent.test_HTTP4Request __________________________________________ self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTP4Request> def test_HTTP4Request(self): > self.agent.request('GET', 'http://127.0.0.1/eggs') test_http.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../http.py:43: in request return self._wrappedAgent.request(*a, **kw) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request parsedURI = URI.fromBytes(uri) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes scheme, netloc, path, params, query, fragment = http.urlparse(uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://127.0.0.1/eggs' def urlparse(url): """ Parse an URL into six components. This is similar to C{urlparse.urlparse}, but rejects C{unicode} input and always produces C{bytes} output. @type url: C{bytes} @raise TypeError: The given url was a C{unicode} string instead of a C{bytes}. @return: The scheme, net location, path, params, query string, and fragment of the URL - all as C{bytes}. @rtype: C{ParseResultBytes} """ if isinstance(url, unicode): > raise TypeError("url must be bytes, not unicode") E TypeError: url must be bytes, not unicode /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError _________________________________________ TestSOCKS4Agent.test_HTTP4aRequest __________________________________________ self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTP4aRequest> def test_HTTP4aRequest(self): > self.agent.request('GET', 'http://spam.com/eggs') test_http.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../http.py:43: in request return self._wrappedAgent.request(*a, **kw) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request parsedURI = URI.fromBytes(uri) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes scheme, netloc, path, params, query, fragment = http.urlparse(uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'http://spam.com/eggs' def urlparse(url): """ Parse an URL into six components. This is similar to C{urlparse.urlparse}, but rejects C{unicode} input and always produces C{bytes} output. @type url: C{bytes} @raise TypeError: The given url was a C{unicode} string instead of a C{bytes}. @return: The scheme, net location, path, params, query string, and fragment of the URL - all as C{bytes}. @rtype: C{ParseResultBytes} """ if isinstance(url, unicode): > raise TypeError("url must be bytes, not unicode") E TypeError: url must be bytes, not unicode /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError __________________________________________ TestSOCKS4Agent.test_HTTPSRequest __________________________________________ self = <txsocksx.test.test_http.TestSOCKS4Agent testMethod=test_HTTPSRequest> def test_HTTPSRequest(self): > self.agent.request('GET', 'https://spam.com/eggs') test_http.py:77: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../http.py:43: in request return self._wrappedAgent.request(*a, **kw) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:1649: in request parsedURI = URI.fromBytes(uri) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/client.py:638: in fromBytes scheme, netloc, path, params, query, fragment = http.urlparse(uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ url = 'https://spam.com/eggs' def urlparse(url): """ Parse an URL into six components. This is similar to C{urlparse.urlparse}, but rejects C{unicode} input and always produces C{bytes} output. @type url: C{bytes} @raise TypeError: The given url was a C{unicode} string instead of a C{bytes}. @return: The scheme, net location, path, params, query string, and fragment of the URL - all as C{bytes}. @rtype: C{ParseResultBytes} """ if isinstance(url, unicode): > raise TypeError("url must be bytes, not unicode") E TypeError: url must be bytes, not unicode /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/web/http.py:181: TypeError _________________________________ TLSWrapClientEndpointTestCase.test_methodsAvailable _________________________________ self = <txsocksx.test.test_tls.TLSWrapClientEndpointTestCase testMethod=test_methodsAvailable> def test_methodsAvailable(self): """ Methods defined on the Protocol are accessible from the Protocol returned from connect's Deferred. """ proto = self.successResultOf(self.wrapper.connect(self.factory)) > proto.sendString('spam') test_tls.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:163: in sendString self.transport.write(_formatNetstring(string)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = 'spam' def _formatNetstring(data): > return b''.join([str(len(data)).encode("ascii"), b':', data, b',']) E TypeError: sequence item 2: expected a bytes-like object, str found /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:30: TypeError _________________________________ TLSWrapClientEndpointTestCase.test_wrappingBehavior _________________________________ self = <txsocksx.test.test_tls.TLSWrapClientEndpointTestCase testMethod=test_wrappingBehavior> def test_wrappingBehavior(self): """ Any modifications performed by the underlying ProtocolWrapper propagate through to the wrapped Protocol. """ proto = self.successResultOf(self.wrapper.connect(self.factory)) > self.endpoint.proto.dataReceived('5:hello,') test_tls.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ util.py:35: in dataReceived policies.ProtocolWrapper.dataReceived(self, data.upper()) /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/policies.py:120: in dataReceived self.wrappedProtocol.dataReceived(data) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <txsocksx.test.test_tls.NetstringTracker object at 0x7f9c976a2550>, data = '5:HELLO,' def dataReceived(self, data): """ Receives some characters of a netstring. Whenever a complete netstring is received, this method extracts its payload and calls L{stringReceived} to process it. @param data: A chunk of data representing a (possibly partial) netstring @type data: C{bytes} """ > self._remainingData += data E TypeError: can't concat str to bytes /home/anand/virtualenvs/txsocksx/lib/python3.5/site-packages/twisted/protocols/basic.py:177: TypeError ======================================== 75 failed, 11 passed in 4.88 seconds ========================================= (txsocksx) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test\ {2019-03-18 19:40:34} ```
pythonhacker commented 2019-03-18 20:12:26 +00:00
Author
Owner

After some 3 hours of head-banging got the grammar test to work. Woho...



$ pytest -x
======================================= test session starts =======================================
platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile:
collected 10 items                                                                                

test_grammar.py ..........                                                                  [100%]

==================================== 10 passed in 0.16 seconds ====================================
After some 3 hours of head-banging got the grammar test to work. Woho... ``` $ pytest -x ======================================= test session starts ======================================= platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile: collected 10 items test_grammar.py .......... [100%] ==================================== 10 passed in 0.16 seconds ==================================== ```
pythonhacker commented 2019-03-18 20:14:36 +00:00
Author
Owner

So the idea here would be to prepare a patch for the grammar part and send it as PR to the original project, after filing an issue, to engage the upstream earlier than later.

The grammar fixes will be backwards compatible with Python2, so it should not break his code. The problem is txsocksx hasn't been updated in like 4 years!

Should have a patch ready in a day or two.

Makes sense I hope.

So the idea here would be to prepare a patch for the grammar part and send it as PR to the original project, after filing an issue, to engage the upstream earlier than later. The grammar fixes will be backwards compatible with Python2, so it should not break his code. The problem is txsocksx hasn't been updated in like 4 years! Should have a patch ready in a day or two. Makes sense I hope.
pythonhacker commented 2019-03-18 20:19:01 +00:00
Author
Owner

Updated upstream ticket with comment -> https://github.com/habnabit/txsocksx/issues/19

Updated upstream ticket with comment -> <https://github.com/habnabit/txsocksx/issues/19>
pythonhacker commented 2019-03-20 18:38:32 +00:00
Author
Owner

Reduced unit test errors to 22 for test_client.py (from 66)

Reduced unit test errors to 22 for `test_client.py` (from 66)
pythonhacker commented 2019-03-20 18:39:57 +00:00
Author
Owner

A full patch will probably take another 1-2 days. Btw I am on a short break from tomorrow, so you may not see much updates here till March 25.

A full patch will probably take another 1-2 days. Btw I am on a short break from tomorrow, so you may not see much updates here till March 25.
pythonhacker commented 2019-06-03 09:49:29 +00:00
Author
Owner

Sorry for being away for a while. I am back now.

Ok, so today I worked for 4-5 hours after a long time and got the txsocksx unit tests passing in Python2 and 3.

(tx3) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test_grammar\ {2019-06-03 15:15:12}
$ pytest
========================================================== test session starts
platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile:
collected 76 items

test_client.py .................................................................. [ 86%]
test_grammar.py .......... [100%]

======================================================= 76 passed in 1.32 seconds

This does not mean txsocksx is fully ready for Python3. We will know only when the modified code is tested with foolscap.

Anyway, hopefully this update was useful.

Sorry for being away for a while. I am back now. Ok, so today I worked for 4-5 hours after a long time and got the txsocksx unit tests passing in Python2 and 3. (tx3) anand@anand-HP-Pavilion-Laptop-15-cc1xx:~/projects/anvetsu/tahoe/txsocksx/txsocksx/test_grammar\ {2019-06-03 15:15:12} $ pytest ========================================================== test session starts platform linux -- Python 3.5.6, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 rootdir: /home/anand/projects/anvetsu/tahoe/txsocksx, inifile: collected 76 items test_client.py .................................................................. [ 86%] test_grammar.py .......... [100%] ======================================================= 76 passed in 1.32 seconds This does not mean txsocksx is *fully ready* for Python3. We will know only when the modified code is tested with foolscap. Anyway, hopefully this update was useful.
pythonhacker commented 2019-06-03 09:50:10 +00:00
Author
Owner

By end of tomorrow (4th June), I would have made the changes available in my own port of txsocksx with more information here.

By end of tomorrow (4th June), I would have made the changes available in my own port of txsocksx with more information here.
pythonhacker commented 2019-06-03 17:21:26 +00:00
Author
Owner

The changes are available in my fork @ https://github.com/pythonhacker/txsocksx . Only 7 more tests to be fixed now.

I expect I will be able to raise a PR with the txsocksx origin project in couple days and start working on foolscap by end of this week.

The changes are available in my fork @ <https://github.com/pythonhacker/txsocksx> . Only 7 more tests to be fixed now. I expect I will be able to raise a PR with the txsocksx origin project in couple days and start working on foolscap by end of this week.
pythonhacker commented 2019-06-04 18:29:34 +00:00
Author
Owner

All tests pass now. All changes pushed to github. Perhaps someone could verify by checking out my code and letting me know if something is not working for them.

  • Python version (3): 3.5.6
  • Python version (2): 2.7.15
All tests pass now. All changes pushed to github. Perhaps someone could verify by checking out my code and letting me know if something is not working for them. * Python version (3): 3.5.6 * Python version (2): 2.7.15
Foolscap no longer depends on txsocksx - <https://github.com/warner/foolscap/issues/37#issuecomment-570762166>
exarkun added the
r/somebody else's problem
label 2020-01-09 18:33:53 +00:00
Sign in to join this conversation.
No labels
c/code
c/code-dirnodes
c/code-encoding
c/code-frontend
c/code-frontend-cli
c/code-frontend-ftp-sftp
c/code-frontend-magic-folder
c/code-frontend-web
c/code-mutable
c/code-network
c/code-nodeadmin
c/code-peerselection
c/code-storage
c/contrib
c/dev-infrastructure
c/docs
c/operational
c/packaging
c/unknown
c/website
kw:2pc
kw:410
kw:9p
kw:ActivePerl
kw:AttributeError
kw:DataUnavailable
kw:DeadReferenceError
kw:DoS
kw:FileZilla
kw:GetLastError
kw:IFinishableConsumer
kw:K
kw:LeastAuthority
kw:Makefile
kw:RIStorageServer
kw:StringIO
kw:UncoordinatedWriteError
kw:about
kw:access
kw:access-control
kw:accessibility
kw:accounting
kw:accounting-crawler
kw:add-only
kw:aes
kw:aesthetics
kw:alias
kw:aliases
kw:aliens
kw:allmydata
kw:amazon
kw:ambient
kw:annotations
kw:anonymity
kw:anonymous
kw:anti-censorship
kw:api_auth_token
kw:appearance
kw:appname
kw:apport
kw:archive
kw:archlinux
kw:argparse
kw:arm
kw:assertion
kw:attachment
kw:auth
kw:authentication
kw:automation
kw:avahi
kw:availability
kw:aws
kw:azure
kw:backend
kw:backoff
kw:backup
kw:backupdb
kw:backward-compatibility
kw:bandwidth
kw:basedir
kw:bayes
kw:bbfreeze
kw:beta
kw:binaries
kw:binutils
kw:bitcoin
kw:bitrot
kw:blacklist
kw:blocker
kw:blocks-cloud-deployment
kw:blocks-cloud-merge
kw:blocks-magic-folder-merge
kw:blocks-merge
kw:blocks-raic
kw:blocks-release
kw:blog
kw:bom
kw:bonjour
kw:branch
kw:branding
kw:breadcrumbs
kw:brians-opinion-needed
kw:browser
kw:bsd
kw:build
kw:build-helpers
kw:buildbot
kw:builders
kw:buildslave
kw:buildslaves
kw:cache
kw:cap
kw:capleak
kw:captcha
kw:cast
kw:centos
kw:cffi
kw:chacha
kw:charset
kw:check
kw:checker
kw:chroot
kw:ci
kw:clean
kw:cleanup
kw:cli
kw:cloud
kw:cloud-backend
kw:cmdline
kw:code
kw:code-checks
kw:coding-standards
kw:coding-tools
kw:coding_tools
kw:collection
kw:compatibility
kw:completion
kw:compression
kw:confidentiality
kw:config
kw:configuration
kw:configuration.txt
kw:conflict
kw:connection
kw:connectivity
kw:consistency
kw:content
kw:control
kw:control.furl
kw:convergence
kw:coordination
kw:copyright
kw:corruption
kw:cors
kw:cost
kw:coverage
kw:coveralls
kw:coveralls.io
kw:cpu-watcher
kw:cpyext
kw:crash
kw:crawler
kw:crawlers
kw:create-container
kw:cruft
kw:crypto
kw:cryptography
kw:cryptography-lib
kw:cryptopp
kw:csp
kw:curl
kw:cutoff-date
kw:cycle
kw:cygwin
kw:d3
kw:daemon
kw:darcs
kw:darcsver
kw:database
kw:dataloss
kw:db
kw:dead-code
kw:deb
kw:debian
kw:debug
kw:deep-check
kw:defaults
kw:deferred
kw:delete
kw:deletion
kw:denial-of-service
kw:dependency
kw:deployment
kw:deprecation
kw:desert-island
kw:desert-island-build
kw:design
kw:design-review-needed
kw:detection
kw:dev-infrastructure
kw:devpay
kw:directory
kw:directory-page
kw:dirnode
kw:dirnodes
kw:disconnect
kw:discovery
kw:disk
kw:disk-backend
kw:distribute
kw:distutils
kw:dns
kw:do_http
kw:doc-needed
kw:docker
kw:docs
kw:docs-needed
kw:dokan
kw:dos
kw:download
kw:downloader
kw:dragonfly
kw:drop-upload
kw:duplicity
kw:dusty
kw:earth-dragon
kw:easy
kw:ec2
kw:ecdsa
kw:ed25519
kw:egg-needed
kw:eggs
kw:eliot
kw:email
kw:empty
kw:encoding
kw:endpoint
kw:enterprise
kw:enum34
kw:environment
kw:erasure
kw:erasure-coding
kw:error
kw:escaping
kw:etag
kw:etch
kw:evangelism
kw:eventual
kw:example
kw:excess-authority
kw:exec
kw:exocet
kw:expiration
kw:extensibility
kw:extension
kw:failure
kw:fedora
kw:ffp
kw:fhs
kw:figleaf
kw:file
kw:file-descriptor
kw:filename
kw:filesystem
kw:fileutil
kw:fips
kw:firewall
kw:first
kw:floatingpoint
kw:flog
kw:foolscap
kw:forward-compatibility
kw:forward-secrecy
kw:forwarding
kw:free
kw:freebsd
kw:frontend
kw:fsevents
kw:ftp
kw:ftpd
kw:full
kw:furl
kw:fuse
kw:garbage
kw:garbage-collection
kw:gateway
kw:gatherer
kw:gc
kw:gcc
kw:gentoo
kw:get
kw:git
kw:git-annex
kw:github
kw:glacier
kw:globalcaps
kw:glossary
kw:google-cloud-storage
kw:google-drive-backend
kw:gossip
kw:governance
kw:grid
kw:grid-manager
kw:gridid
kw:gridsync
kw:grsec
kw:gsoc
kw:gvfs
kw:hackfest
kw:hacktahoe
kw:hang
kw:hardlink
kw:heartbleed
kw:heisenbug
kw:help
kw:helper
kw:hint
kw:hooks
kw:how
kw:how-to
kw:howto
kw:hp
kw:hp-cloud
kw:html
kw:http
kw:https
kw:i18n
kw:i2p
kw:i2p-collab
kw:illustration
kw:image
kw:immutable
kw:impressions
kw:incentives
kw:incident
kw:init
kw:inlineCallbacks
kw:inotify
kw:install
kw:installer
kw:integration
kw:integration-test
kw:integrity
kw:interactive
kw:interface
kw:interfaces
kw:interoperability
kw:interstellar-exploration
kw:introducer
kw:introduction
kw:iphone
kw:ipkg
kw:iputil
kw:ipv6
kw:irc
kw:jail
kw:javascript
kw:joke
kw:jquery
kw:json
kw:jsui
kw:junk
kw:key-value-store
kw:kfreebsd
kw:known-issue
kw:konqueror
kw:kpreid
kw:kvm
kw:l10n
kw:lae
kw:large
kw:latency
kw:leak
kw:leasedb
kw:leases
kw:libgmp
kw:license
kw:licenss
kw:linecount
kw:link
kw:linux
kw:lit
kw:localhost
kw:location
kw:locking
kw:logging
kw:logo
kw:loopback
kw:lucid
kw:mac
kw:macintosh
kw:magic-folder
kw:manhole
kw:manifest
kw:manual-test-needed
kw:map
kw:mapupdate
kw:max_space
kw:mdmf
kw:memcheck
kw:memory
kw:memory-leak
kw:mesh
kw:metadata
kw:meter
kw:migration
kw:mime
kw:mingw
kw:minimal
kw:misc
kw:miscapture
kw:mlp
kw:mock
kw:more-info-needed
kw:mountain-lion
kw:move
kw:multi-users
kw:multiple
kw:multiuser-gateway
kw:munin
kw:music
kw:mutability
kw:mutable
kw:mystery
kw:names
kw:naming
kw:nas
kw:navigation
kw:needs-review
kw:needs-spawn
kw:netbsd
kw:network
kw:nevow
kw:new-user
kw:newcaps
kw:news
kw:news-done
kw:news-needed
kw:newsletter
kw:newurls
kw:nfc
kw:nginx
kw:nixos
kw:no-clobber
kw:node
kw:node-url
kw:notification
kw:notifyOnDisconnect
kw:nsa310
kw:nsa320
kw:nsa325
kw:numpy
kw:objects
kw:old
kw:openbsd
kw:openitp-packaging
kw:openssl
kw:openstack
kw:opensuse
kw:operation-helpers
kw:operational
kw:operations
kw:ophandle
kw:ophandles
kw:ops
kw:optimization
kw:optional
kw:options
kw:organization
kw:os
kw:os.abort
kw:ostrom
kw:osx
kw:osxfuse
kw:otf-magic-folder-objective1
kw:otf-magic-folder-objective2
kw:otf-magic-folder-objective3
kw:otf-magic-folder-objective4
kw:otf-magic-folder-objective5
kw:otf-magic-folder-objective6
kw:p2p
kw:packaging
kw:partial
kw:password
kw:path
kw:paths
kw:pause
kw:peer-selection
kw:performance
kw:permalink
kw:permissions
kw:persistence
kw:phone
kw:pickle
kw:pip
kw:pipermail
kw:pkg_resources
kw:placement
kw:planning
kw:policy
kw:port
kw:portability
kw:portal
kw:posthook
kw:pratchett
kw:preformance
kw:preservation
kw:privacy
kw:process
kw:profile
kw:profiling
kw:progress
kw:proxy
kw:publish
kw:pyOpenSSL
kw:pyasn1
kw:pycparser
kw:pycrypto
kw:pycrypto-lib
kw:pycryptopp
kw:pyfilesystem
kw:pyflakes
kw:pylint
kw:pypi
kw:pypy
kw:pysqlite
kw:python
kw:python3
kw:pythonpath
kw:pyutil
kw:pywin32
kw:quickstart
kw:quiet
kw:quotas
kw:quoting
kw:raic
kw:rainhill
kw:random
kw:random-access
kw:range
kw:raspberry-pi
kw:reactor
kw:readonly
kw:rebalancing
kw:recovery
kw:recursive
kw:redhat
kw:redirect
kw:redressing
kw:refactor
kw:referer
kw:referrer
kw:regression
kw:rekey
kw:relay
kw:release
kw:release-blocker
kw:reliability
kw:relnotes
kw:remote
kw:removable
kw:removable-disk
kw:rename
kw:renew
kw:repair
kw:replace
kw:report
kw:repository
kw:research
kw:reserved_space
kw:response-needed
kw:response-time
kw:restore
kw:retrieve
kw:retry
kw:review
kw:review-needed
kw:reviewed
kw:revocation
kw:roadmap
kw:rollback
kw:rpm
kw:rsa
kw:rss
kw:rst
kw:rsync
kw:rusty
kw:s3
kw:s3-backend
kw:s3-frontend
kw:s4
kw:same-origin
kw:sandbox
kw:scalability
kw:scaling
kw:scheduling
kw:schema
kw:scheme
kw:scp
kw:scripts
kw:sdist
kw:sdmf
kw:security
kw:self-contained
kw:server
kw:servermap
kw:servers-of-happiness
kw:service
kw:setup
kw:setup.py
kw:setup_requires
kw:setuptools
kw:setuptools_darcs
kw:sftp
kw:shared
kw:shareset
kw:shell
kw:signals
kw:simultaneous
kw:six
kw:size
kw:slackware
kw:slashes
kw:smb
kw:sneakernet
kw:snowleopard
kw:socket
kw:solaris
kw:space
kw:space-efficiency
kw:spam
kw:spec
kw:speed
kw:sqlite
kw:ssh
kw:ssh-keygen
kw:sshfs
kw:ssl
kw:stability
kw:standards
kw:start
kw:startup
kw:static
kw:static-analysis
kw:statistics
kw:stats
kw:stats_gatherer
kw:status
kw:stdeb
kw:storage
kw:streaming
kw:strports
kw:style
kw:stylesheet
kw:subprocess
kw:sumo
kw:survey
kw:svg
kw:symlink
kw:synchronous
kw:tac
kw:tahoe-*
kw:tahoe-add-alias
kw:tahoe-admin
kw:tahoe-archive
kw:tahoe-backup
kw:tahoe-check
kw:tahoe-cp
kw:tahoe-create-alias
kw:tahoe-create-introducer
kw:tahoe-debug
kw:tahoe-deep-check
kw:tahoe-deepcheck
kw:tahoe-lafs-trac-stream
kw:tahoe-list-aliases
kw:tahoe-ls
kw:tahoe-magic-folder
kw:tahoe-manifest
kw:tahoe-mkdir
kw:tahoe-mount
kw:tahoe-mv
kw:tahoe-put
kw:tahoe-restart
kw:tahoe-rm
kw:tahoe-run
kw:tahoe-start
kw:tahoe-stats
kw:tahoe-unlink
kw:tahoe-webopen
kw:tahoe.css
kw:tahoe_files
kw:tahoewapi
kw:tarball
kw:tarballs
kw:tempfile
kw:templates
kw:terminology
kw:test
kw:test-and-set
kw:test-from-egg
kw:test-needed
kw:testgrid
kw:testing
kw:tests
kw:throttling
kw:ticket999-s3-backend
kw:tiddly
kw:time
kw:timeout
kw:timing
kw:to
kw:to-be-closed-on-2011-08-01
kw:tor
kw:tor-protocol
kw:torsocks
kw:tox
kw:trac
kw:transparency
kw:travis
kw:travis-ci
kw:trial
kw:trickle
kw:trivial
kw:truckee
kw:tub
kw:tub.location
kw:twine
kw:twistd
kw:twistd.log
kw:twisted
kw:twisted-14
kw:twisted-trial
kw:twitter
kw:twn
kw:txaws
kw:type
kw:typeerror
kw:ubuntu
kw:ucwe
kw:ueb
kw:ui
kw:unclean
kw:uncoordinated-writes
kw:undeletable
kw:unfinished-business
kw:unhandled-error
kw:unhappy
kw:unicode
kw:unit
kw:unix
kw:unlink
kw:update
kw:upgrade
kw:upload
kw:upload-helper
kw:uri
kw:url
kw:usability
kw:use-case
kw:utf-8
kw:util
kw:uwsgi
kw:ux
kw:validation
kw:variables
kw:vdrive
kw:verify
kw:verlib
kw:version
kw:versioning
kw:versions
kw:video
kw:virtualbox
kw:virtualenv
kw:vista
kw:visualization
kw:visualizer
kw:vm
kw:volunteergrid2
kw:volunteers
kw:vpn
kw:wapi
kw:warners-opinion-needed
kw:warning
kw:weapi
kw:web
kw:web.port
kw:webapi
kw:webdav
kw:webdrive
kw:webport
kw:websec
kw:website
kw:websocket
kw:welcome
kw:welcome-page
kw:welcomepage
kw:wiki
kw:win32
kw:win64
kw:windows
kw:windows-related
kw:winscp
kw:workaround
kw:world-domination
kw:wrapper
kw:write-enabler
kw:wui
kw:x86
kw:x86-64
kw:xhtml
kw:xml
kw:xss
kw:zbase32
kw:zetuptoolz
kw:zfec
kw:zookos-opinion-needed
kw:zope
kw:zope.interface
p/blocker
p/critical
p/major
p/minor
p/normal
p/supercritical
p/trivial
r/cannot reproduce
r/duplicate
r/fixed
r/invalid
r/somebody else's problem
r/was already fixed
r/wontfix
r/worksforme
t/defect
t/enhancement
t/task
v/0.2.0
v/0.3.0
v/0.4.0
v/0.5.0
v/0.5.1
v/0.6.0
v/0.6.1
v/0.7.0
v/0.8.0
v/0.9.0
v/1.0.0
v/1.1.0
v/1.10.0
v/1.10.1
v/1.10.2
v/1.10a2
v/1.11.0
v/1.12.0
v/1.12.1
v/1.13.0
v/1.14.0
v/1.15.0
v/1.15.1
v/1.2.0
v/1.3.0
v/1.4.1
v/1.5.0
v/1.6.0
v/1.6.1
v/1.7.0
v/1.7.1
v/1.7β
v/1.8.0
v/1.8.1
v/1.8.2
v/1.8.3
v/1.8β
v/1.9.0
v/1.9.0-s3branch
v/1.9.0a1
v/1.9.0a2
v/1.9.0b1
v/1.9.1
v/1.9.2
v/1.9.2a1
v/cloud-branch
v/unknown
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac#2999
No description provided.