@testing.requires.autocommit
def test_no_autocommit_w_begin(self):
    with testing.db.begin() as conn:
        assert_raises_message(exc.InvalidRequestError, 'This connection has already begun a transaction; isolation_level may not be altered until transaction end', conn.execution_options, isolation_level='AUTOCOMMIT')
@testing.requires.autocommit
def test_no_autocommit_w_begin(self):
    with testing.db.begin() as conn:
        assert_raises_message(exc.InvalidRequestError, 'This connection has already begun a transaction; isolation_level may not be altered until transaction end', conn.execution_options, isolation_level='AUTOCOMMIT')