def test_tunnelling_ack(self): """Test string representation of KNX/IP TunnellingAck.""" tunnelling_ack = TunnellingAck() tunnelling_ack.communication_channel_id = 23 tunnelling_ack.sequence_counter = 42 assert ( str(tunnelling_ack) == '<TunnellingAck communication_channel_id="23" sequence_counter="42" status_code="ErrorCode.E_NO_ERROR" />' )
def test_tunnelling_ack(self): """Test string representation of KNX/IP TunnellingAck.""" xknx = XKNX(loop=self.loop) tunnelling_ack = TunnellingAck(xknx) tunnelling_ack.communication_channel_id = 23 tunnelling_ack.sequence_counter = 42 self.assertEqual( str(tunnelling_ack), '<TunnellingAck communication_channel_id="23" sequence_counter="42" status_code="ErrorCode.E_NO_ERROR" />')