ϪfdZddlmZddlmZmZddlmZmZddl m Z ddl m Z eejGddZGd d e jZy ) z, Tests for various parts of L{twisted.web}. ) annotations) implementerverify)defer interfaces)unittest)clientc0eZdZdZddZddZ ddZy) DummyEndPointz*An endpoint that does not connect anywherec||_y)N someString)selfrs >/usr/lib/python3/dist-packages/twisted/web/test/test_client.py__init__zDummyEndPoint.__init__s $c"d|jdS)NzDummyEndPoint()r )rs r__repr__zDummyEndPoint.__repr__s022rc@tjt|S)N)factory)rsucceeddict)rrs rconnectzDummyEndPoint.connects}}T'233rN)rstrreturnNone)rr)rzinterfaces.IProtocolFactoryrz6defer.Deferred[dict[str, interfaces.IProtocolFactory]])__name__ __module__ __qualname____doc__rrrrrr r s&5%3424 ?4rr c eZdZdZddZddZy)HTTPConnectionPoolTestsz: Unit tests for L{client.HTTPConnectionPoolTest}. cbtd}tjtj|y)z@L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint} somethingN)r r verifyObjectrIStreamClientEndpoint)reps rtest_implementsz'HTTPConnectionPoolTests.test_implements&s" ; 'J<r?sQ#.." Z - -. 4 4/ 4 0h//0r