Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.128.173.223
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
web /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
__init__.py
107
B
-rw-r--r--
2022-02-07 13:12
_util.py
3.1
KB
-rw-r--r--
2022-02-07 13:12
injectionhelpers.py
5.46
KB
-rw-r--r--
2022-02-07 13:12
requesthelper.py
14.77
KB
-rw-r--r--
2022-02-07 13:12
test_agent.py
118.21
KB
-rw-r--r--
2022-02-07 13:12
test_cgi.py
14.76
KB
-rw-r--r--
2022-02-07 13:12
test_client.py
1.33
KB
-rw-r--r--
2022-02-07 13:12
test_distrib.py
17.61
KB
-rw-r--r--
2022-02-07 13:12
test_domhelpers.py
10.78
KB
-rw-r--r--
2022-02-07 13:12
test_error.py
15.57
KB
-rw-r--r--
2022-02-07 13:12
test_flatten.py
21.61
KB
-rw-r--r--
2022-02-07 13:12
test_html.py
1.19
KB
-rw-r--r--
2022-02-07 13:12
test_http.py
151.87
KB
-rw-r--r--
2024-11-22 17:49
test_http2.py
105.32
KB
-rw-r--r--
2022-02-07 13:12
test_http_headers.py
22.75
KB
-rw-r--r--
2022-02-07 13:12
test_httpauth.py
23.23
KB
-rw-r--r--
2022-02-07 13:12
test_newclient.py
106.8
KB
-rw-r--r--
2022-02-07 13:12
test_proxy.py
19.58
KB
-rw-r--r--
2022-02-07 13:12
test_resource.py
8.92
KB
-rw-r--r--
2022-02-07 13:12
test_script.py
3.72
KB
-rw-r--r--
2022-02-07 13:12
test_soap.py
3.06
KB
-rw-r--r--
2022-02-07 13:12
test_stan.py
7.08
KB
-rw-r--r--
2022-02-07 13:12
test_static.py
66.6
KB
-rw-r--r--
2022-02-07 13:12
test_tap.py
11.56
KB
-rw-r--r--
2022-02-07 13:12
test_template.py
28.17
KB
-rw-r--r--
2022-02-07 13:12
test_util.py
14.7
KB
-rw-r--r--
2024-11-22 17:49
test_vhost.py
7.55
KB
-rw-r--r--
2024-11-22 17:49
test_web.py
67.52
KB
-rw-r--r--
2024-11-22 17:49
test_web__responses.py
829
B
-rw-r--r--
2022-02-07 13:12
test_webclient.py
11.52
KB
-rw-r--r--
2022-02-07 13:12
test_wsgi.py
74.72
KB
-rw-r--r--
2022-02-07 13:12
test_xml.py
41.04
KB
-rw-r--r--
2022-02-07 13:12
test_xmlrpc.py
29.86
KB
-rw-r--r--
2022-02-07 13:12
Save
Rename
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for various parts of L{twisted.web}. """ from zope.interface import implementer, verify from twisted.internet import defer, interfaces from twisted.trial import unittest from twisted.web import client @implementer(interfaces.IStreamClientEndpoint) class DummyEndPoint: """An endpoint that does not connect anywhere""" def __init__(self, someString): self.someString = someString def __repr__(self) -> str: return f"DummyEndPoint({self.someString})" def connect(self, factory): return defer.succeed(dict(factory=factory)) class HTTPConnectionPoolTests(unittest.TestCase): """ Unit tests for L{client.HTTPConnectionPoolTest}. """ def test_implements(self): """L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint}""" ep = DummyEndPoint("something") verify.verifyObject(interfaces.IStreamClientEndpoint, ep) def test_repr(self): """connection L{repr()} includes endpoint's L{repr()}""" pool = client.HTTPConnectionPool(reactor=None) ep = DummyEndPoint("this_is_probably_unique") d = pool.getConnection("someplace", ep) result = self.successResultOf(d) representation = repr(result) self.assertIn(repr(ep), representation)