Commit 53a99312 authored by Jérome Perrin's avatar Jérome Perrin

use a nammed parameter for passing context to getPrice



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10417 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14ef8cff
...@@ -406,6 +406,6 @@ class TestDomainTool(ERP5TypeTestCase): ...@@ -406,6 +406,6 @@ class TestDomainTool(ERP5TypeTestCase):
mapped_value = domain_tool.generateMappedValue(context,sort_method=sort_method) mapped_value = domain_tool.generateMappedValue(context,sort_method=sort_method)
self.assertEquals(mapped_value.getProperty('base_price'),26) self.assertEquals(mapped_value.getProperty('base_price'),26)
# Now check the price # Now check the price
self.assertEquals(self.resource.getPrice( self.resource.asContext(categories=['resource/%s' % self.resource.getRelativeUrl(),'variation/%s/blue' % self.resource.getRelativeUrl()]),sort_method=sort_method),45) self.assertEquals(self.resource.getPrice(context=self.resource.asContext(categories=['resource/%s' % self.resource.getRelativeUrl(),'variation/%s/blue' % self.resource.getRelativeUrl()]),sort_method=sort_method),45)
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