

def test_register_per_dbapi(self):
    registry.register('mysql.my_mock_dialect', __name__, 'MockDialect')
    e = create_engine('mysql+my_mock_dialect://')
    assert isinstance(e.dialect, MockDialect)

dataset/ETHPy150Open zzzeek/sqlalchemy/test/engine/test_parseconnect.py TestRegNewDBAPI.test_register_per_dbapi/original