'mitmproxy doesn\'t support UDP or BIND SOCKS CMDs'

def test_no_connect(self):

    p = self.pathoc()
    with p.connect():
        socks.ClientGreeting(socks.VERSION.SOCKS5, [socks.METHOD.NO_AUTHENTICATION_REQUIRED]).to_file(p.wfile)
        socks.Message(socks.VERSION.SOCKS5, socks.CMD.BIND, socks.ATYP.DOMAINNAME, ('example.com', 8080)).to_file(p.wfile)
        p.wfile.flush()
        p.rfile.read(2)
        f = p.request('get:/p/200')
    assert (f.status_code == 502)
    assert ('SOCKS5    mode    failure' in f.content)
    assert ('mitmproxy    only    supports    SOCKS5    CONNECT' in f.content)
