()
| 3 | |
| 4 | |
| 5 | def test(): |
| 6 | p = packet.Packet(packet.EVENT, {'foo': b'bar'}) |
| 7 | start = time.time() |
| 8 | count = 0 |
| 9 | while True: |
| 10 | eps = p.encode() |
| 11 | p = packet.Packet(encoded_packet=eps[0]) |
| 12 | for ep in eps[1:]: |
| 13 | p.add_attachment(ep) |
| 14 | count += 1 |
| 15 | if time.time() - start >= 5: |
| 16 | break |
| 17 | return count |
| 18 | |
| 19 | |
| 20 | if __name__ == '__main__': |
no test coverage detected