'Ensure that connections are shared when the connection settings are exactly the same'

def test_sharing_connections(self):

    connect('mongoenginetests', alias='testdb1')
    expected_connection = get_connection('testdb1')
    connect('mongoenginetests', alias='testdb2')
    actual_connection = get_connection('testdb2')
    if IS_PYMONGO_3:
        expected_connection.server_info()
    self.assertEqual(expected_connection, actual_connection)
