def test_create_message(self): message = SMB2Logoff() expected = b"\x04\x00" \ b"\x00\x00" actual = message.pack() assert len(message) == 4 assert actual == expected
def test_parse_message(self): actual = SMB2Logoff() data = b"\x04\x00" \ b"\x00\x00" actual.unpack(data) assert len(actual) == 4 assert actual['structure_size'].get_value() == 4 assert actual['reserved'].get_value() == 0