Files
WoW-Hybrid-gateway/tests/native_movement_rejection_fixture.py
praxisandClaude Fable 5.2 7f2139d8d0 Offline test fixtures
883 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

15 lines
753 B
Python

"""Independent source packet checks after native C ABI decoder rejection.
Called only by loopback_fixture's explicit --wire-movement-reject mode, using
its local fixture SRP key and header decoder. No external server connections.
"""
import struct
def expect_recovered_movement(stream,cipher,read_packet):
opcode,body=read_packet(stream,cipher)
assert opcode==0x26a and body==struct.pack('<Q',42), 'movement recovery active-mover header/body or cipher differs'
opcode,body=read_packet(stream,cipher)
# Independent Turtle MovementInfo::Read layout, not a gateway encoder.
expected=struct.pack('<IIffffI',1,100,1.0,2.0,3.0,0.5,0)
assert opcode==0xb5 and body==expected, 'movement recovery movement header/body or cipher differs'