Module Expr Str ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse If Call NameLoad NameLoad Call NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad Call NameLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Raise Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq NameLoad Str body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq NameLoad Str body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list For NameStore TupleLoad NameLoad NameLoad body For NameStore TupleLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Str Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Num If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd Call NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad Str Call NameLoad Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Slice Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr For NameStore TupleLoad Str Str body Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd Str BinOpMult Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str BinOpMult Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd BinOpAdd Str BinOpMult Str Num Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Str decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword TupleLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword TupleLoad Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad Str Str decorator_list NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num TryFinally body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad Str Str decorator_list NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Tests for the http.client module

Adapted for the python-future module from the Python 2.7 standard
library tests.
 __future__ absolute_import division print_function unicode_literals future.builtins * future utils future.tests.base unittest skip26 future.backports.http client future.backports.test support N/A array N/A io N/A socket N/A errno N/A sys N/A TestCase N/A unittest TestCase N/A HOST N/A support HOST FakeSocket N/A object N/A __init__ N/A N/A self text fileclass N/A N/A io BytesIO N/A N/A N/A isinstance text str N/A N/A text N/A N/A N/A str text encode ascii N/A N/A self text text N/A N/A self fileclass fileclass N/A N/A self data N/A bytes N/A sendall N/A N/A self data N/A N/A N/A olddata N/A self data N/A N/A isinstance olddata bytes N/A N/A utils PY3 N/A N/A N/A self data data N/A N/A N/A isinstance data N/A type N/A N/A newdata N/A N/A data encode ascii N/A N/A N/A isinstance data N/A type N/A N/A newdata N/A bytes data N/A N/A N/A isinstance data bytes N/A N/A newdata data N/A N/A N/A isinstance data N/A array array N/A N/A newdata N/A N/A data tostring N/A N/A newdata N/A N/A N/A bytes join N/A N/A chr d N/A d N/A bytes data N/A N/A self data newdata N/A makefile N/A N/A self mode bufsize N/A None N/A N/A N/A N/A mode r N/A mode rb N/A N/A N/A N/A client UnimplementedFileMode N/A N/A N/A self fileclass N/A self text N/A N/A EPipeSocket N/A FakeSocket N/A __init__ N/A N/A self text pipe_trigger N/A N/A N/A N/A N/A FakeSocket __init__ self text N/A N/A self pipe_trigger pipe_trigger N/A sendall N/A N/A self data N/A N/A N/A N/A N/A self pipe_trigger data N/A N/A N/A N/A socket error N/A errno EPIPE gotcha N/A N/A self data data N/A close N/A N/A self N/A N/A N/A N/A N/A NoEOFBytesIO N/A N/A io BytesIO N/A N/A Like BytesIO, but raises AssertionError on EOF.

    This is used below to test that http.client doesn't try to read
    more from the underlying file than it should.
     read N/A N/A self n N/A -1 N/A N/A data N/A N/A N/A io BytesIO read self n N/A N/A data N/A N/A N/A AssertionError caller tried to read past EOF N/A data N/A readline N/A N/A self length N/A None N/A N/A data N/A N/A N/A io BytesIO readline self length N/A N/A data N/A N/A N/A AssertionError caller tried to read past EOF N/A data N/A N/A HeaderTests N/A TestCase N/A test_auto_headers N/A N/A self N/A N/A HeaderCountingBuffer N/A list N/A __init__ N/A N/A self N/A N/A N/A N/A self count N/A N/A append N/A N/A self item N/A N/A N/A kv N/A N/A item split : N/A N/A N/A len kv 1 N/A N/A lcKey N/A N/A N/A N/A N/A kv N/A 0 decode ascii lower N/A N/A N/A N/A self count setdefault lcKey 0 N/A N/A N/A self count N/A lcKey 1 N/A N/A N/A list append self item N/A N/A N/A explicit_header N/A True False N/A N/A header N/A Content-length Host Accept-encoding N/A N/A conn N/A N/A client HTTPConnection example.com N/A N/A conn sock N/A FakeSocket blahblahblah N/A N/A conn _buffer N/A HeaderCountingBuffer N/A body spamspamspam N/A headers N/A N/A explicit_header N/A N/A N/A headers N/A header N/A str N/A len body N/A N/A N/A conn request POST / body headers N/A N/A N/A self assertEqual N/A N/A N/A conn _buffer count N/A N/A N/A header lower 1 N/A test_content_length_0 N/A N/A self N/A N/A ContentLengthChecker N/A list N/A __init__ N/A N/A self N/A N/A N/A N/A N/A list __init__ self N/A N/A self content_length None N/A append N/A N/A self item N/A N/A N/A kv N/A N/A item split : 1 N/A N/A N/A N/A len kv 1 N/A N/A N/A N/A kv N/A 0 lower content-length N/A N/A N/A self content_length N/A N/A N/A kv N/A 1 strip N/A N/A N/A list append self item N/A N/A N/A conn N/A N/A client HTTPConnection example.com N/A N/A conn sock N/A FakeSocket None N/A N/A conn _buffer N/A ContentLengthChecker N/A N/A N/A conn request POST / N/A N/A N/A self assertEqual N/A N/A conn _buffer content_length 0 Header Content-Length not set N/A conn N/A N/A client HTTPConnection example.com N/A N/A conn sock N/A FakeSocket None N/A N/A conn _buffer N/A ContentLengthChecker N/A N/A N/A conn request PUT / N/A N/A N/A self assertEqual N/A N/A conn _buffer content_length 0 Header Content-Length not set N/A test_putheader N/A N/A self N/A N/A N/A conn N/A N/A client HTTPConnection example.com N/A N/A conn sock N/A FakeSocket None N/A N/A N/A conn putrequest GET / N/A N/A N/A conn putheader Content-length 42 N/A N/A N/A self assertTrue N/A Content-length: 42 N/A conn _buffer N/A test_ipv6host_header N/A N/A self N/A N/A N/A expected N/A N/A bytes GET /foo HTTP/1.1
Host: [2001::]:81
 N/A bytes Accept-Encoding: identity

 N/A conn N/A N/A client HTTPConnection [2001::]:81 N/A sock N/A FakeSocket N/A N/A conn sock sock N/A N/A N/A conn request GET /foo N/A N/A N/A self assertTrue N/A N/A N/A sock data startswith expected N/A expected N/A N/A bytes GET /foo HTTP/1.1
Host: [2001:102A::]
 N/A bytes Accept-Encoding: identity

 N/A conn N/A N/A client HTTPConnection [2001:102A::] N/A sock N/A FakeSocket N/A N/A conn sock sock N/A N/A N/A conn request GET /foo N/A N/A N/A self assertTrue N/A N/A N/A sock data startswith expected N/A N/A skip26 BasicTest N/A TestCase N/A test_status_lines N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read Text N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A body HTTP/1.1 400.100 Not Ok

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A self assertRaises N/A client BadStatusLine N/A resp begin N/A test_bad_status_repr N/A N/A self N/A N/A N/A exc N/A N/A client BadStatusLine N/A N/A N/A utils PY3 N/A N/A N/A N/A self assertEqual N/A repr exc BadStatusLine("u''",) N/A N/A N/A N/A self assertEqual N/A repr exc BadStatusLine("''",) N/A test_partial_reads N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok
Content-Length: 4

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read 2 Te N/A N/A N/A self assertFalse N/A N/A resp isclosed N/A N/A N/A self assertEqual N/A N/A resp read 2 xt N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A test_partial_reads_no_content_length N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read 2 Te N/A N/A N/A self assertFalse N/A N/A resp isclosed N/A N/A N/A self assertEqual N/A N/A resp read 2 xt N/A N/A N/A self assertEqual N/A N/A resp read 1 N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A test_partial_reads_incomplete_body N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok
Content-Length: 10

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read 2 Te N/A N/A N/A self assertFalse N/A N/A resp isclosed N/A N/A N/A self assertEqual N/A N/A resp read 2 xt N/A N/A N/A self assertEqual N/A N/A resp read 1 N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A test_host_port N/A N/A self N/A N/A N/A hp N/A www.python.org:abc user:password@www.python.org N/A N/A N/A N/A self assertRaises N/A client InvalidURL N/A client HTTPConnection hp N/A N/A hp h p N/A N/A [fe80::207:e9ff:fe9b]:8000 fe80::207:e9ff:fe9b 8000 N/A www.python.org:80 www.python.org 80 N/A www.python.org www.python.org 80 N/A www.python.org: www.python.org 80 N/A [fe80::207:e9ff:fe9b] fe80::207:e9ff:fe9b 80 N/A N/A c N/A N/A client HTTPConnection hp N/A N/A N/A self assertEqual h N/A c host N/A N/A N/A self assertEqual p N/A c port N/A test_response_headers N/A N/A self N/A N/A N/A text HTTP/1.1 200 OK
Set-Cookie: Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"
Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme"

No body
 N/A hdr Customer="WILE_E_COYOTE"; Version="1"; Path="/acme", Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme" N/A s N/A FakeSocket text N/A r N/A N/A client HTTPResponse s N/A N/A N/A r begin N/A cookies N/A N/A r getheader Set-Cookie N/A N/A N/A self assertEqual cookies hdr N/A test_read_head N/A N/A self N/A N/A N/A sock N/A FakeSocket HTTP/1.1 200 OK
Content-Length: 14432

 NoEOFBytesIO N/A resp N/A N/A client HTTPResponse sock method HEAD N/A N/A N/A resp begin N/A N/A N/A resp read N/A N/A N/A N/A self fail Did not expect response from HEAD request N/A test_send_file N/A N/A self N/A N/A N/A expected N/A N/A bytes GET /foo HTTP/1.1
Host: example.com
 N/A bytes Accept-Encoding: identity
Content-Length: N/A N/A open __file__ rb body N/A N/A conn N/A N/A client HTTPConnection example.com N/A sock N/A FakeSocket body N/A N/A conn sock sock N/A N/A N/A conn request GET /foo body N/A N/A N/A self assertTrue N/A N/A N/A sock data startswith expected N/A %r != %r N/A N/A N/A sock data N/A N/A len expected expected N/A test_send N/A N/A self N/A N/A N/A expected N/A bytes this is a test this is only a test N/A conn N/A N/A client HTTPConnection example.com N/A sock N/A FakeSocket None N/A N/A conn sock sock N/A N/A N/A conn send expected N/A N/A N/A self assertEqual expected N/A sock data N/A N/A sock data N/A bytes N/A N/A utils PY3 N/A N/A mydata N/A N/A array array b expected N/A N/A mydata N/A N/A array array b expected N/A N/A N/A conn send mydata N/A N/A N/A self assertEqual expected N/A sock data N/A N/A sock data N/A bytes N/A N/A N/A conn send N/A N/A io BytesIO expected N/A N/A N/A self assertEqual expected N/A sock data N/A test_chunked N/A N/A self N/A N/A N/A chunked_start HTTP/1.1 200 OK
Transfer-Encoding: chunked

a
hello worl
1
d
 N/A sock N/A FakeSocket N/A chunked_start 0
 N/A resp N/A N/A client HTTPResponse sock method GET N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read hello world N/A N/A N/A resp close N/A x N/A foo
 N/A N/A sock N/A FakeSocket N/A chunked_start x N/A resp N/A N/A client HTTPResponse sock method GET N/A N/A N/A resp begin N/A N/A N/A N/A N/A N/A N/A resp read N/A N/A N/A N/A client IncompleteRead N/A i N/A N/A N/A N/A self assertEqual N/A i partial hello world N/A N/A N/A self assertEqual N/A repr i IncompleteRead(11 bytes read) N/A N/A N/A self assertEqual N/A str i IncompleteRead(11 bytes read) N/A N/A N/A N/A self fail IncompleteRead expected N/A N/A N/A N/A resp close N/A test_chunked_head N/A N/A self N/A N/A N/A chunked_start HTTP/1.1 200 OK
Transfer-Encoding: chunked

a
hello world
1
d
 N/A sock N/A FakeSocket N/A chunked_start 0
 N/A resp N/A N/A client HTTPResponse sock method HEAD N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read N/A N/A N/A self assertEqual N/A resp status 200 N/A N/A N/A self assertEqual N/A resp reason OK N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A test_negative_content_length N/A N/A self N/A N/A N/A sock N/A FakeSocket HTTP/1.1 200 OK
Content-Length: -1

Hello
 N/A resp N/A N/A client HTTPResponse sock method GET N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read Hello
 N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A test_incomplete_read N/A N/A self N/A N/A N/A sock N/A FakeSocket HTTP/1.1 200 OK
Content-Length: 10

Hello
 N/A resp N/A N/A client HTTPResponse sock method GET N/A N/A N/A resp begin N/A N/A N/A N/A N/A resp read N/A N/A N/A N/A client IncompleteRead N/A i N/A N/A N/A N/A self assertEqual N/A i partial Hello
 N/A N/A N/A self assertEqual N/A repr i IncompleteRead(7 bytes read, 3 more expected) N/A N/A N/A self assertEqual N/A str i IncompleteRead(7 bytes read, 3 more expected) N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A N/A N/A N/A self fail IncompleteRead expected N/A test_epipe N/A N/A self N/A N/A N/A sock N/A EPipeSocket HTTP/1.0 401 Authorization Required
Content-type: text/html
WWW-Authenticate: Basic realm="example"
 Content-Length N/A conn N/A N/A client HTTPConnection example.com N/A N/A conn sock sock N/A N/A N/A self assertRaises N/A socket error N/A N/A N/A N/A N/A N/A conn request PUT /url body N/A resp N/A N/A conn getresponse N/A N/A N/A self assertEqual 401 N/A resp status N/A N/A N/A self assertEqual Basic realm="example" N/A N/A resp getheader www-authenticate N/A test_filenoattr N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok

Text N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A self assertTrue N/A hasattr resp fileno HTTPResponse should expose a fileno attribute N/A test_overflowing_status_line N/A N/A self N/A N/A N/A N/A N/A self skipTest disabled for HTTP 0.9 support N/A body N/A N/A HTTP/1.1 200 Ok N/A k 65536 N/A resp N/A N/A client HTTPResponse N/A FakeSocket body N/A N/A N/A self assertRaises N/A N/A client LineTooLong N/A client BadStatusLine N/A resp begin N/A test_overflowing_header_line N/A N/A self N/A N/A N/A body N/A N/A HTTP/1.1 200 OK
X-Foo: bar N/A r 65536 N/A resp N/A N/A client HTTPResponse N/A FakeSocket body N/A N/A N/A self assertRaises N/A client LineTooLong N/A resp begin N/A test_overflowing_chunked_line N/A N/A self N/A N/A N/A body N/A N/A HTTP/1.1 200 OK
Transfer-Encoding: chunked

 N/A 0 65536 a
hello world
0
 N/A resp N/A N/A client HTTPResponse N/A FakeSocket body N/A N/A N/A resp begin N/A N/A N/A self assertRaises N/A client LineTooLong N/A resp read N/A test_early_eof N/A N/A self N/A N/A N/A body HTTP/1.1 200 Ok N/A sock N/A FakeSocket body N/A resp N/A N/A client HTTPResponse sock N/A N/A N/A resp begin N/A N/A N/A self assertEqual N/A N/A resp read N/A N/A N/A self assertTrue N/A N/A resp isclosed N/A N/A skip26 OfflineTest N/A TestCase N/A test_responses N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A client responses N/A N/A client NOT_FOUND Not Found N/A N/A skip26 SourceAddressTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self serv N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A self port N/A N/A support bind_port N/A self serv N/A N/A self source_port N/A N/A support find_unused_port N/A N/A N/A N/A self serv listen 5 N/A N/A self conn None N/A tearDown N/A N/A self N/A N/A N/A N/A self conn N/A N/A N/A N/A N/A self conn close N/A N/A self conn None N/A N/A N/A N/A self serv close N/A N/A self serv None N/A testHTTPConnectionSourceAddress N/A N/A self N/A N/A N/A N/A self conn N/A N/A client HTTPConnection HOST N/A self port source_address N/A N/A self source_port N/A N/A N/A N/A self conn connect N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A self conn sock getsockname N/A 1 N/A self source_port N/A testHTTPSConnectionSourceAddress N/A N/A self N/A N/A N/A N/A self conn N/A N/A client HTTPSConnection HOST N/A self port source_address N/A N/A self source_port N/A N/A N/A unittest skipIf N/A N/A hasattr client HTTPSConnection http.client.HTTPSConnection not defined N/A skip26 TimeoutTest N/A TestCase N/A N/A PORT None setUp N/A N/A self N/A N/A N/A N/A self serv N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A TimeoutTest PORT N/A N/A support bind_port N/A self serv N/A N/A N/A N/A self serv listen 5 N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self serv close N/A N/A self serv None N/A testTimeoutAttribute N/A N/A self N/A N/A N/A This will prove that the timeout gets through
        HTTPConnection and into the socket.
         N/A N/A N/A self assertTrue N/A N/A N/A socket getdefaulttimeout None N/A N/A N/A socket setdefaulttimeout 30 N/A N/A N/A httpConn N/A N/A client HTTPConnection HOST N/A TimeoutTest PORT N/A N/A N/A httpConn connect N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertEqual N/A N/A N/A httpConn sock gettimeout 30 N/A N/A N/A httpConn close N/A N/A N/A self assertTrue N/A N/A N/A socket getdefaulttimeout None N/A N/A N/A socket setdefaulttimeout 30 N/A N/A N/A httpConn N/A N/A client HTTPConnection HOST N/A TimeoutTest PORT timeout None N/A N/A N/A httpConn connect N/A N/A N/A N/A socket setdefaulttimeout None N/A N/A N/A self assertEqual N/A N/A N/A httpConn sock gettimeout None N/A N/A N/A httpConn close N/A httpConn N/A N/A client HTTPConnection HOST N/A TimeoutTest PORT timeout 30 N/A N/A N/A httpConn connect N/A N/A N/A self assertEqual N/A N/A N/A httpConn sock gettimeout 30 N/A N/A N/A httpConn close N/A N/A skip26 HTTPSTest N/A TestCase N/A test_attributes N/A N/A self N/A N/A N/A N/A hasattr client HTTPSConnection N/A N/A h N/A N/A client HTTPSConnection HOST N/A TimeoutTest PORT timeout 30 N/A N/A N/A self assertEqual N/A h timeout 30 N/A test_host_port N/A N/A self N/A N/A N/A hp N/A www.python.org:abc user:password@www.python.org N/A N/A N/A N/A self assertRaises N/A client InvalidURL N/A client HTTPSConnection hp N/A N/A hp h p N/A N/A [fe80::207:e9ff:fe9b]:8000 fe80::207:e9ff:fe9b 8000 N/A pypi.python.org:443 pypi.python.org 443 N/A pypi.python.org pypi.python.org 443 N/A pypi.python.org: pypi.python.org 443 N/A [fe80::207:e9ff:fe9b] fe80::207:e9ff:fe9b 443 N/A N/A c N/A N/A client HTTPSConnection hp N/A N/A N/A self assertEqual h N/A c host N/A N/A N/A self assertEqual p N/A c port N/A N/A N/A unittest skipIf N/A N/A hasattr client HTTPSConnection http.client.HTTPSConnection not available N/A skip26 N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main