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" />' )
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" />')