Commit 9e31191f authored by Arnaud Fontaine's avatar Arnaud Fontaine

Display printable representation of the object (2bc75bf6).

parent 2bc75bf6
...@@ -524,12 +524,12 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -524,12 +524,12 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
def assertHasAttribute(self, obj, attribute, msg=None): def assertHasAttribute(self, obj, attribute, msg=None):
self.failIfEqual(None, getattr(obj, attribute, None), self.failIfEqual(None, getattr(obj, attribute, None),
msg or '%s: no attribute %s' % (obj.__name__, msg or "'%r': no attribute '%s'" % (obj,
attribute)) attribute))
def failIfHasAttribute(self, obj, attribute, msg=None): def failIfHasAttribute(self, obj, attribute, msg=None):
self.assertEquals(None, getattr(obj, attribute, None), self.assertEquals(None, getattr(obj, attribute, None),
msg or '%s: attribute %s present' % (obj.__name__, msg or "'%r': attribute '%s' present" % (obj,
attribute)) attribute))
def assertWorkflowTransitionFails(self, object, workflow_id, transition_id, def assertWorkflowTransitionFails(self, object, workflow_id, transition_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment