def test_invalid_level(self):
    eng = testing_engine(options=dict(isolation_level='FOO'))
    assert_raises_message(exc.ArgumentError, ("Invalid value '%s' for isolation_level. Valid isolation levels for %s are %s" % ('FOO', eng.dialect.name, ', '.join(eng.dialect._isolation_lookup))), eng.connect)
def test_invalid_level(self):
    eng = testing_engine(options=dict(isolation_level='FOO'))
    assert_raises_message(exc.ArgumentError, ("Invalid value '%s' for isolation_level. Valid isolation levels for %s are %s" % ('FOO', eng.dialect.name, ', '.join(eng.dialect._isolation_lookup))), eng.connect)