Commit 69da28be authored by Nicolas Dumazet's avatar Nicolas Dumazet

do not raise an error if delivery_value is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb93456c
......@@ -717,7 +717,10 @@ class TestProductionOrderMixin(TestOrderMixin):
LOG('Raise Assertion error',0,'')
LOG('object.getQuantity()',0,object.getQuantity())
LOG('object.__dict__',0,object.__dict__)
LOG('object.getDeliveryValue().getQuantity()',0,object.getDeliveryValue().getQuantity())
delivery_value = object.getDeliveryValue()
LOG('object.getDeliveryValue()', 0, delivery_value)
if delivery_value is not None:
LOG('object.getDeliveryValue().getQuantity()',0,delivery_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