예제 #1
0
파일: str_test.py 프로젝트: onkelbeh/xknx
 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" />'
     )
예제 #2
0
파일: str_test.py 프로젝트: phbaer/xknx
 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" />')
예제 #3
0
 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" />')