summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYogesh Sakhreliya <ysa@tinyerp.com>2011-12-29 18:04:13 +0530
committerYogesh Sakhreliya <ysa@tinyerp.com>2011-12-29 18:04:13 +0530
commit6112db95ddc52bc09b197c9df8b2a9181d57fc5f (patch)
treee30da640e92cf6b3c075bce39e3dcbc79c62c0e4
parentbc524902eb7c33ae3ec48801a7481236617e86eb (diff)
[FIX-695338] fix assert tag in currency rate.
bzr revid: ysa@tinyerp.com-20111229123413-vba5v6etaf1vrh74
-rw-r--r--bin/addons/base/test/test_context.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/addons/base/test/test_context.xml b/bin/addons/base/test/test_context.xml
index 44751644403..d308fc3dea8 100644
--- a/bin/addons/base/test/test_context.xml
+++ b/bin/addons/base/test/test_context.xml
@@ -6,15 +6,15 @@
<!-- model="res.currency"-->
<!-- id="INR"-->
<!-- string="Indian rupee rate in 2009">-->
- <!-- date specified in data element's context -->
+ <!-- date specified in data element's context -->
<!-- <test expr="str(rate)">65.8287</test>-->
<!-- </assert> -->
- <assert
+ <assert
model="res.currency"
id="INR"
string="Indian rupee rate in 2002"
context="{'date': '2010-06-01'}">
- <test expr="str(rate)">59.9739</test>
+ <test expr="rate_ids and str(rate_ids[0].rate)">59.9739</test>
</assert>
</data>
</openerp>