Commit 75d0df7b authored by Łukasz Nowak's avatar Łukasz Nowak

Check more properties on line.

parent 045be5d3
...@@ -242,6 +242,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin): ...@@ -242,6 +242,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
line.getResource()) line.getResource())
self.assertTrue(all([q in line.getCategoryList() \ self.assertTrue(all([q in line.getCategoryList() \
for q in open_sale_order_line_template.getCategoryList()])) for q in open_sale_order_line_template.getCategoryList()]))
self.assertEqual(open_sale_order_line_template.getQuantity(),
line.getQuantity())
self.assertEqual(open_sale_order_line_template.getPrice(),
line.getPrice())
self.assertEqual(None, line.getStartDate()) self.assertEqual(None, line.getStartDate())
def test_usualLifetime_HostingSubscription(self): def test_usualLifetime_HostingSubscription(self):
...@@ -291,6 +295,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin): ...@@ -291,6 +295,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
for q in open_sale_order_line_template.getCategoryList()])) for q in open_sale_order_line_template.getCategoryList()]))
self.assertEqual(open_sale_order_line_template.getResource(), self.assertEqual(open_sale_order_line_template.getResource(),
line.getResource()) line.getResource())
self.assertEqual(open_sale_order_line_template.getQuantity(),
line.getQuantity())
self.assertEqual(open_sale_order_line_template.getPrice(),
line.getPrice())
self.assertEqual(request_time, line.getStartDate()) self.assertEqual(request_time, line.getStartDate())
destroy_time = DateTime('2012/02/01') destroy_time = DateTime('2012/02/01')
...@@ -342,6 +350,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin): ...@@ -342,6 +350,10 @@ class TestHostingSubscription_requestUpdateOpenSaleOrder(testSlapOSMixin):
for q in open_sale_order_line_template.getCategoryList()])) for q in open_sale_order_line_template.getCategoryList()]))
self.assertEqual(open_sale_order_line_template.getResource(), self.assertEqual(open_sale_order_line_template.getResource(),
archived_line.getResource()) archived_line.getResource())
self.assertEqual(open_sale_order_line_template.getQuantity(),
line.getQuantity())
self.assertEqual(open_sale_order_line_template.getPrice(),
line.getPrice())
self.assertEqual(request_time, archived_line.getStartDate()) self.assertEqual(request_time, archived_line.getStartDate())
# calculate stop date to be after now, begin with start date with precision # calculate stop date to be after now, begin with start date with precision
......
16 17
\ 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