In the UI it would be nice to duplicate the selected connection, in the menu "With Selected". 

The copy would be set with the same name plus some suffix (_copy, _1, whatever) and it is useful for when you have a connection with all equal fields except something in a particular one. 
tests/www/views/test_views_connection.py
#
#
#
from unittest import mock
import pytest
from airflow.models import Connection
from airflow.utils.session import create_session
from airflow.www.extensions import init_views
from airflow.www.views import ConnectionModelView
from tests.test_utils.www import check_content_in_response
CONNECTION = {
    'conn_id': 'test_conn',
    'conn_type': 'http',
    'description': 'description',
    'host': 'localhost',
    'port': 8080,
    'username': 'root',
    'password': 'admin',
}
@pytest.fixture(autouse=True)
def clear_connections():