From 7f488497f55be1401f402f2b346708e8cd4675e9 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 5 Dec 2019 16:58:19 +0100 Subject: [PATCH] account_permanent_lock_move: fix tests --- account_permanent_lock_move/tests/test_permanent_lock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_permanent_lock_move/tests/test_permanent_lock.py b/account_permanent_lock_move/tests/test_permanent_lock.py index a1c75c610..6d8d81451 100644 --- a/account_permanent_lock_move/tests/test_permanent_lock.py +++ b/account_permanent_lock_move/tests/test_permanent_lock.py @@ -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,