def test_from_knx_invalid_cemi(self): """Test parsing and streaming CEMIFrame KNX/IP packet with unsupported CEMICode.""" xknx = XKNX() ri = RoutingIndication(xknx) raw = bytes([43, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0]) self.assertEqual(11, ri.from_knx(raw))
def test_from_knx_invalid_cemi(self): """Test parsing and streaming CEMIFrame KNX/IP packet with unsupported CEMICode.""" routing_indication = RoutingIndication() raw = bytes([43, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0]) assert routing_indication.from_knx(raw) == 11