equal
deleted
inserted
replaced
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() |