

def test_register_legacy(self):
    tokens = __name__.split('.')
    global dialect
    dialect = MockDialect
    registry.register('mockdialect.foob', '.'.join(tokens[0:(- 1)]), tokens[(- 1)])
    e = create_engine('mockdialect+foob://')
    assert isinstance(e.dialect, MockDialect)

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