| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | """Defines Echo Request message during the handshake.""" |
||
| 25 | 1 | def __init__(self, xid=None, data=b''): |
|
| 26 | """Create a EchoRequest with the optional parameters below. |
||
| 27 | |||
| 28 | Args: |
||
| 29 | xid (int): xid to be used on the message header. |
||
| 30 | data (bytes): arbitrary-length data field. |
||
| 31 | """ |
||
| 32 | 1 | super().__init__(xid) |
|
| 33 | self.data = data |
||
| 34 |