Commit 3a1d3867 authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix testERP5Commerce.TestCommerce.test_14_getSelectedShippingResource

getSelectedShippingResource returns an object; compare relative urls


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 377c1727
...@@ -659,8 +659,10 @@ class TestCommerce(ERP5TypeTestCase): ...@@ -659,8 +659,10 @@ class TestCommerce(ERP5TypeTestCase):
order_line.setResource(shipping_list[0].getRelativeUrl()) order_line.setResource(shipping_list[0].getRelativeUrl())
order_line.setQuantity(1) order_line.setQuantity(1)
selected_resource = self.portal.SaleOrder_getSelectedShippingResource()
self.assertEquals(shipping_list[0].getRelativeUrl(), self.assertEquals(shipping_list[0].getRelativeUrl(),
self.portal.SaleOrder_getSelectedShippingResource()) selected_resource.getRelativeUrl())
def test_15_getShoppingCartDefaultCurrency(self): def test_15_getShoppingCartDefaultCurrency(self):
""" """
......
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