'Check to ensure that the broadcast and listen adresss is populated correctly
@since 3.3
@jira_ticket PYTHON-332
@expected_result They are populated for C*> 2.1.6, 2.2.0
@test_category metadata'

@local
def test_broadcast_listen_address(self):

    for host in self.cluster.metadata.all_hosts():
        self.assertIsNotNone(host.broadcast_address)
    con = self.cluster.control_connection.get_connections()[0]
    local_host = con.host
    listen_addrs = [host.listen_address for host in self.cluster.metadata.all_hosts()]
    self.assertTrue((local_host in listen_addrs))
