def test_deactivated_warning_ctxmanager(self, local_connection):
    with expect_warnings('transaction already deassociated from connection'):
        with local_connection.begin() as trans:
            trans.rollback()
def test_deactivated_warning_ctxmanager(self, local_connection):
    with expect_warnings('transaction already deassociated from connection'):
        with local_connection.begin() as trans:
            trans.rollback()