Commit 470d286e authored by Łukasz Nowak's avatar Łukasz Nowak

Assert the whole category list.

parent 9373f7bf
...@@ -1463,8 +1463,16 @@ class TestSlapOSAggregatedDeliveryBuilder(testSlapOSMixin): ...@@ -1463,8 +1463,16 @@ class TestSlapOSAggregatedDeliveryBuilder(testSlapOSMixin):
built_delivery.getReference()) built_delivery.getReference())
self.assertEqual('confirmed', built_delivery.getSimulationState()) self.assertEqual('confirmed', built_delivery.getSimulationState())
self.assertEqual('building', built_delivery.getCausalityState()) self.assertEqual('building', built_delivery.getCausalityState())
self.assertEqual(delivery.getPriceCurrency(), self.assertSameSet([
built_delivery.getPriceCurrency()) 'destination/%s' % person.getRelativeUrl(),
'destination_decision/%s' % person.getRelativeUrl(),
'destination_section/%s' % person.getRelativeUrl(),
'price_currency/currency_module/EUR',
'source/%s' % person.getRelativeUrl(),
'source_section/organisation_module/slapos',
'specialise/sale_trade_condition_module/'
'slapos_aggregated_trade_condition'],
built_delivery.getCategoryList())
self.assertEqual(DateTime().earliestTime(), built_delivery.getStartDate()) self.assertEqual(DateTime().earliestTime(), built_delivery.getStartDate())
delivery_line_list = built_delivery.contentValues( delivery_line_list = built_delivery.contentValues(
portal_type='Sale Packing List Line') portal_type='Sale Packing List Line')
......
190 191
\ No newline at end of file \ No newline at end of file
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