Test the beacon's send method.
(b)
| 64 | test_recv(b) |
| 65 | |
| 66 | def test_send(b): |
| 67 | "Test the beacon's send method." |
| 68 | while True: |
| 69 | b.send(time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()).encode()) |
| 70 | time.sleep(1) |
| 71 | |
| 72 | def test_recv(b): |
| 73 | "Test the beacon's recv method." |