Commit dc85b5c9 authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "No subscritions movements are delivered."

This reverts commit 835a15a5.
parent fd503cb4
...@@ -386,25 +386,25 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): ...@@ -386,25 +386,25 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
'planned', 'planned',
sale_invoice.getSimulationState()) sale_invoice.getSimulationState())
self.assertAlmostEquals( self.assertAlmostEquals(
0.0, sale_invoice.getTotalPrice(), 3) 0.836, sale_invoice.getTotalPrice(), 3)
# 1 invoice line is expected # 1 invoice line is expected
invoice_line_list = sale_invoice.contentValues( invoice_line_list = sale_invoice.contentValues(
portal_type="Invoice Line") portal_type="Invoice Line")
self.assertEquals(1, len(invoice_line_list)) self.assertEquals(2, len(invoice_line_list))
service_line = [x for x in invoice_line_list \ service_line = [x for x in invoice_line_list \
if x.getResource() == 'service_module/vifib_instance_setup'][0] if x.getResource() == 'service_module/vifib_instance_setup'][0]
# subscription_line = [x for x in invoice_line_list \ subscription_line = [x for x in invoice_line_list \
# if x.getResource() == 'service_module/vifib_instance_subscription'][0] if x.getResource() == 'service_module/vifib_instance_subscription'][0]
self.assertEquals(True, service_line.hasPrice()) self.assertEquals(True, service_line.hasPrice())
self.assertAlmostEquals(0, service_line.getPrice(), 3) self.assertAlmostEquals(0, service_line.getPrice(), 3)
self.assertEquals(1, service_line.getQuantity()) self.assertEquals(1, service_line.getQuantity())
# self.assertEquals(True, subscription_line.hasPrice()) self.assertEquals(True, subscription_line.hasPrice())
# self.assertAlmostEquals(0.836, subscription_line.getPrice(), 3) self.assertAlmostEquals(0.836, subscription_line.getPrice(), 3)
# self.assertEquals(1, subscription_line.getQuantity()) self.assertEquals(1, subscription_line.getQuantity())
# 0 transaction line # 0 transaction line
transaction_line_list = sale_invoice.contentValues( transaction_line_list = sale_invoice.contentValues(
......
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