[MERGE] forward port of branch saas-3 up to revid 5060 chs@openerp.com-20140206131116...
[odoo/odoo.git] / openerp / addons / base / test / test_context.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <!-- Test context attribute for unit tests -->
4     <data context="{'date': '2009-06-01'}">
5 <!--        <assert -->
6 <!--            model="res.currency"-->
7 <!--            id="INR"-->
8 <!--            string="Indian rupee rate in 2009">-->
9             <!-- date specified in data element's context -->
10 <!--            <test expr="str(rate)">65.8287</test>-->
11 <!--        </assert> -->
12         <assert
13             model="res.currency"
14             id="INR"
15             string="Indian rupee rate in 2002"
16             context="{'date': '2010-06-01'}">
17             <test expr="rate_ids and str(rate_ids[0].rate)">59.9739</test>
18         </assert>
19     </data>
20 </openerp>