def test_parse_message(self): actual = SMB2CreateDurableHandleRequest() data = b"\x00" * 16 data = actual.unpack(data) assert len(actual) == 16 assert data == b"" assert actual['durable_request'].get_value() == b"\x00" * 16
def test_create_message(self): message = SMB2CreateDurableHandleRequest() expected = b"\x00" * 16 actual = message.pack() assert len(message) == 16 assert actual == expected