'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'

def test_get_control_connection_host(self):

    host = self.cluster.get_control_connection_host()
    self.assertEqual(host, None)
    self.session = self.cluster.connect()
    cc_host = self.cluster.control_connection._connection.host
    host = self.cluster.get_control_connection_host()
    self.assertEqual(host.address, cc_host)
    self.assertEqual(host.is_up, True)
    self.cluster.control_connection._reconnect()
    new_host = self.cluster.get_control_connection_host()
    self.assertNotEqual(host, new_host)
