MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / testPing

Method testPing

src/Test/TestConnectionServer.py:76–83  ·  view source on GitHub ↗
(self, file_server, site)

Source from the content-addressed store, hash-verified

74 CryptConnection.manager.crypt_supported = crypt_supported_bk
75
76 def testPing(self, file_server, site):
77 client = ConnectionServer(file_server.ip, 1545)
78 connection = client.getConnection(file_server.ip, 1544)
79
80 assert connection.ping()
81
82 connection.close()
83 client.stop()
84
85 def testGetConnection(self, file_server):
86 client = ConnectionServer(file_server.ip, 1545)

Callers

nothing calls this directly

Calls 5

getConnectionMethod · 0.95
stopMethod · 0.95
ConnectionServerClass · 0.90
pingMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected