diff --git a/master/product/Vifib/tests/testVifibDefaultUseCase.py b/master/product/Vifib/tests/testVifibDefaultUseCase.py index 0dd965ade7209d169e235106bb93990b2d9fd8ef..ae71320bc9e92830c90f1507089d9e4a77b05931 100644 --- a/master/product/Vifib/tests/testVifibDefaultUseCase.py +++ b/master/product/Vifib/tests/testVifibDefaultUseCase.py @@ -386,25 +386,25 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin): 'planned', sale_invoice.getSimulationState()) self.assertAlmostEquals( - 0.0, sale_invoice.getTotalPrice(), 3) + 0.836, sale_invoice.getTotalPrice(), 3) # 1 invoice line is expected invoice_line_list = sale_invoice.contentValues( 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 \ if x.getResource() == 'service_module/vifib_instance_setup'][0] -# subscription_line = [x for x in invoice_line_list \ -# if x.getResource() == 'service_module/vifib_instance_subscription'][0] + subscription_line = [x for x in invoice_line_list \ + if x.getResource() == 'service_module/vifib_instance_subscription'][0] self.assertEquals(True, service_line.hasPrice()) self.assertAlmostEquals(0, service_line.getPrice(), 3) self.assertEquals(1, service_line.getQuantity()) -# self.assertEquals(True, subscription_line.hasPrice()) -# self.assertAlmostEquals(0.836, subscription_line.getPrice(), 3) -# self.assertEquals(1, subscription_line.getQuantity()) + self.assertEquals(True, subscription_line.hasPrice()) + self.assertAlmostEquals(0.836, subscription_line.getPrice(), 3) + self.assertEquals(1, subscription_line.getQuantity()) # 0 transaction line transaction_line_list = sale_invoice.contentValues(