[REF] Use assertEqual method instead of assert instruction

bzr revid: rim@openerp.com-20140306112053-e0znv1g2378ghs46
This commit is contained in:
Richard Mathot (OpenERP) 2014-03-06 12:20:53 +01:00
parent 3c65ffc29f
commit 6f99891b82
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class test_ir_sequence_no_gap(unittest2.TestCase):
n0 = registry('ir.sequence').next_by_code(cr0, ADMIN_USER_ID, 'test_sequence_type_2', {})
assert n0
n1 = registry('ir.sequence').next_by_code(cr1, ADMIN_USER_ID, 'test_sequence_type_2', {})
assert e.exception.pgcode == psycopg2.errorcodes.LOCK_NOT_AVAILABLE
self.assertEqual(e.exception.pgcode, psycopg2.errorcodes.LOCK_NOT_AVAILABLE, msg="postgresql returned an incorrect errcode")
cr0.close()
cr1.close()