MCPcopy Create free account
hub / github.com/ActiveState/code / test

Function test

recipes/Python/577950_Socket_Broadcast_Help/recipe-577950.py:60–64  ·  view source on GitHub ↗

Test the beacon broadcasting class.

()

Source from the content-addressed store, hash-verified

58################################################################################
59
60def test():
61 "Test the beacon broadcasting class."
62 b = Beacon(50000)
63 _thread.start_new_thread(test_send, (b,))
64 test_recv(b)
65
66def test_send(b):
67 "Test the beacon's send method."

Callers 1

recipe-577950.pyFile · 0.70

Calls 2

BeaconClass · 0.85
test_recvFunction · 0.85

Tested by

no test coverage detected