account_permanent_lock_move: fix tests

This commit is contained in:
Alexis de Lattre
2019-12-05 16:58:19 +01:00
parent f5dda88479
commit 7f488497f5

View File

@@ -56,7 +56,7 @@ class PermanentLock(common.TransactionCase):
})
self.wizard.confirm_date()
except UserError as ue:
if 'entries are still unposted' in ue.name:
if 'are still unposted' in ue.name:
raised_lock_error = True
self.assertTrue(raised_lock_error,
@@ -90,7 +90,7 @@ class PermanentLock(common.TransactionCase):
})
self.wizard.confirm_date()
except UserError as ue:
if 'permanent lock date in the past' in ue.name:
if 'permanent lock date before the current permanent' in ue.name:
raised_lock_error = True
self.assertTrue(raised_lock_error,