Commit d3f5070c authored by Fabien Morin's avatar Fabien Morin

add a test to check getAggregatedAmountList return something

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20b1ed54
......@@ -99,6 +99,19 @@ class TestTransformation(TestTransformationMixin, ERP5TypeTestCase):
"""
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp',)
def test_01_getAggregatedAmountListSimple(self):
"""
Make sure that getAggregatedAmountList return something
"""
transformation = self.createTransformation()
transformed_resource = self.createTransformedResource(transformation)
component = self.createComponent()
transformed_resource.edit(
resource_value=component,
quantity=1)
aggregated_amount_list = transformation.getAggregatedAmountList()
self.assertEquals(len(aggregated_amount_list), 1)
def test_01_getAggregatedAmountListWithVariatedProperty(self):
"""
Make sure that getAggregatedAmountList is still working properly if we
......
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