MCPcopy
hub / github.com/jhao104/proxy_pool / testProxyClass

Function testProxyClass

test/testProxyClass.py:19–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def testProxyClass():
20 proxy = Proxy("127.0.0.1:8080")
21
22 print(proxy.to_json)
23
24 proxy.source = "test"
25
26 proxy_str = json.dumps(proxy.to_dict, ensure_ascii=False)
27
28 print(proxy_str)
29
30 print(Proxy.createFromJson(proxy_str).to_dict)
31
32
33if __name__ == '__main__':

Callers 1

testProxyClass.pyFile · 0.85

Calls 2

ProxyClass · 0.90
createFromJsonMethod · 0.80

Tested by

no test coverage detected