From 2796ee5ec7dd8f62705f2d06e5e753a40346f819 Mon Sep 17 00:00:00 2001 From: GregBestland Date: Fri, 10 Jun 2016 18:12:20 -0500 Subject: [PATCH] PYTHON-583 Adding documentation, enhancing integration test --- .../integration/standard/test_control_connection.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration/standard/test_control_connection.py b/tests/integration/standard/test_control_connection.py index ade053a0..d486f35f 100644 --- a/tests/integration/standard/test_control_connection.py +++ b/tests/integration/standard/test_control_connection.py @@ -80,6 +80,12 @@ class ControlConnectionTests(unittest.TestCase): def test_get_control_connection_host(self): """ Test to validate Cluster.get_control_connection_host() metadata + + @since 3.5.0 + @jira_ticket PYTHON-583 + @expected_result the control connection metadata should accurately reflect cluster state. + + @test_category metadata """ host = self.cluster.get_control_connection_host() @@ -91,3 +97,9 @@ class ControlConnectionTests(unittest.TestCase): host = self.cluster.get_control_connection_host() self.assertEqual(host.address, cc_host) self.assertEqual(host.is_up, True) + + # reconnect and make sure that the new host is reflected correctly + self.cluster.control_connection._reconnect() + new_host = self.cluster.get_control_connection_host() + self.assertNotEqual(host, new_host) +