From 9e31191fdd222cd832cb5a2d3ff35620adde4e04 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Wed, 25 Jan 2012 19:05:02 +0900 Subject: [PATCH] Display printable representation of the object (2bc75bf6a42602549fe3fa2a6790c0499132e6a0). --- product/ERP5Type/tests/ERP5TypeTestCase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index e60fce193c..483916d4e1 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -524,13 +524,13 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): def assertHasAttribute(self, obj, attribute, msg=None): self.failIfEqual(None, getattr(obj, attribute, None), - msg or '%s: no attribute %s' % (obj.__name__, - attribute)) + msg or "'%r': no attribute '%s'" % (obj, + attribute)) def failIfHasAttribute(self, obj, attribute, msg=None): self.assertEquals(None, getattr(obj, attribute, None), - msg or '%s: attribute %s present' % (obj.__name__, - attribute)) + msg or "'%r': attribute '%s' present" % (obj, + attribute)) def assertWorkflowTransitionFails(self, object, workflow_id, transition_id, error_message=None, state_variable='simulation_state'): -- 2.30.9