Commit fb93456c authored by Nicolas Dumazet's avatar Nicolas Dumazet

Do not fail if getOrderValue is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33771 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c7d1f0a
......@@ -715,7 +715,10 @@ class TestProductionOrderMixin(TestOrderMixin):
LOG('Raise Assertion error',0,'')
LOG('object.getQuantity()',0,object.getQuantity())
LOG('object.__dict__',0,object.__dict__)
LOG('object.getOrderValue().getQuantity()',0,object.getOrderValue().getQuantity())
order_value = object.getOrderValue()
LOG('object.getOrderValue()',0, order_value)
if order_value is not None:
LOG('object.getOrderValue().getQuantity()',0,order_value.getQuantity())
raise AssertionError, "Attribute: %s, Value: %s, Result: %s" %\
(attribute, value, getattr(object, attribute)())
......
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