Fix context test in Product.get_cost_value

issue3868
review6311002
(grafted from b4c8414842953207ccf25bf3cd69f89e5d01ca61)

--HG--
branch : 2.6
extra : source : b4c8414842953207ccf25bf3cd69f89e5d01ca61