From 2ed1bb80926dcac0fb956def28b823ea33cef61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Tue, 6 Mar 2012 09:48:18 +0100 Subject: [PATCH] Update to current code behaviour. --- product/ERP5Type/tests/testConstraint.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/product/ERP5Type/tests/testConstraint.py b/product/ERP5Type/tests/testConstraint.py index 3f69f36599..e228fa650d 100644 --- a/product/ERP5Type/tests/testConstraint.py +++ b/product/ERP5Type/tests/testConstraint.py @@ -548,7 +548,7 @@ class TestConstraint(PropertySheetTestCase): SetObjectIntLocalProperty \ CreatePropertyTypeValidity \ CallFixConsistency \ - CheckIfConstraintSucceeded \ + CheckIfConstraintFailed \ CallCheckConsistency \ CheckIfConstraintSucceeded \ ' @@ -1273,8 +1273,7 @@ class TestConstraint(PropertySheetTestCase): transaction.commit() try: self.assertEqual(sorted([ - 'Property default_organisation_title was migrated from local properties.', - 'Property default_organisation_title was modified from foo to None.']), + 'Property default_organisation_title was migrated from local properties.']), sorted([str(q.getMessage()) for q in constraint.fixConsistency(obj)])) self.assertEquals('foo', obj.getDefaultOrganisationTitle()) self.assertEquals('foo', obj.default_organisation.getTitle()) @@ -1302,8 +1301,7 @@ class TestConstraint(PropertySheetTestCase): property_id="testing_category") # fix consistency self.assertEqual(sorted([ - 'Property testing_category was migrated from local properties.', - 'Property testing_category was modified from organisation_module/%s to None.' % obj.getId()]), + 'Property testing_category was migrated from local properties.']), sorted([str(q.getMessage()) for q in constraint.fixConsistency(obj)])) # now we can use testing_category as any category accessor self.assertEqual(0, len(obj._local_properties)) -- GitLab