def METHOD_NAME(self, mock_metrics, mock_current_app):
    ultradns._has_dns_propagated = Mock(return_value=True)
    nameserver = "1.1.1.1"
    ultradns.get_authoritative_nameserver = Mock(return_value=nameserver)
    mock_metrics.send = Mock()
    domain = "_acme-challenge.test.example.com"
    token = "ABCDEFGHIJ"
    change_id = (domain, token)
    mock_current_app.logger.debug = Mock()
    ultradns.wait_for_dns_change(change_id)
    # mock_metrics.send.assert_not_called()
    log_data = {
        "function": "wait_for_dns_change",
        "fqdn": domain,
        "status": True,
        "message": "Record status on Public DNS"
    }
    mock_current_app.logger.debug.assert_called_with(log_data)