server/test/unittest_session.py
changeset 7398 26695dd703d8
parent 7364 aff846ce1050
child 7730 8d0edec31aaf
equal deleted inserted replaced
7397:6a9e66d788b3 7398:26695dd703d8
    72             session.rollback()
    72             session.rollback()
    73             self.assertEqual(session.hooks_mode, session.HOOKS_DENY_ALL)
    73             self.assertEqual(session.hooks_mode, session.HOOKS_DENY_ALL)
    74             self.assertEqual(session.disabled_hook_categories, set())
    74             self.assertEqual(session.disabled_hook_categories, set())
    75             self.assertEqual(session.enabled_hook_categories, set(('metadata',)))
    75             self.assertEqual(session.enabled_hook_categories, set(('metadata',)))
    76         # leaving context manager with no transaction running should reset the
    76         # leaving context manager with no transaction running should reset the
    77         # transaction local storage (and associated pool)
    77         # transaction local storage (and associated cnxset)
    78         self.assertEqual(session._tx_data, {})
    78         self.assertEqual(session._tx_data, {})
    79         self.assertEqual(session.pool, None)
    79         self.assertEqual(session.cnxset, None)
    80 
    80 
    81 if __name__ == '__main__':
    81 if __name__ == '__main__':
    82     unittest_main()
    82     unittest_main()