def test_decode(config_with_data): # Setup data, expected = config_with_data # Run decoder = BitPackDecoder(data) result = MajorItemsConfiguration.bit_pack_unpack(decoder, {}) # Assert assert result == expected
def test_decode_prime2(prime2_data): # Setup data, default, expected = prime2_data # Run decoder = BitPackDecoder(data) result = MajorItemsConfiguration.bit_pack_unpack(decoder, {"reference": default}) # Assert assert result == expected