from types import SimpleNamespace import struct import pytest from protocan.can_boot import CanBootServices, CanBootTarget, CanBootTransfer, CanBootPingExchange from protocan.protocan import ProtoCanId from protocan.transport import build_frame def response(command, data, device=7): return build_frame(ProtoCanId.build(1, 1, 3, device, 13, command), data, to_can=False) def test_passport_and_discovery_address_filters(): service = CanBootServices(CanBootTarget(device_type=3, device=7, product_type=0x2833)) identify = response(1, struct.pack('