예제 #1
0
파일: str_test.py 프로젝트: onkelbeh/xknx
 def test_disconnect_response(self):
     """Test string representation of KNX/IP DisconnectResponse."""
     disconnect_response = DisconnectResponse()
     disconnect_response.communication_channel_id = 23
     assert (
         str(disconnect_response) ==
         '<DisconnectResponse communication_channel_id="23" status_code="ErrorCode.E_NO_ERROR" />'
     )
예제 #2
0
파일: str_test.py 프로젝트: phbaer/xknx
 def test_disconnect_response(self):
     """Test string representation of KNX/IP DisconnectResponse."""
     xknx = XKNX(loop=self.loop)
     disconnect_response = DisconnectResponse(xknx)
     disconnect_response.communication_channel_id = 23
     self.assertEqual(
         str(disconnect_response),
         '<DisconnectResponse CommunicationChannelID="23" status_code="ErrorCode.E_NO_ERROR" />')
예제 #3
0
 def test_disconnect_response(self):
     """Test string representation of KNX/IP DisconnectResponse."""
     xknx = XKNX(loop=self.loop)
     disconnect_response = DisconnectResponse(xknx)
     disconnect_response.communication_channel_id = 23
     self.assertEqual(
         str(disconnect_response),
         '<DisconnectResponse CommunicationChannelID="23" status_code="ErrorCode.E_NO_ERROR" />')