21 lines
620 B
XML
21 lines
620 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<!-- Test context attribute for unit tests -->
|
|
<data context="{'date': '2001-06-01'}">
|
|
<assert
|
|
model="res.currency"
|
|
id="INR"
|
|
string="Indian rupee rate in 2001">
|
|
<!-- date specified in data element's context -->
|
|
<test expr="str(rate)">0.631</test>
|
|
</assert>
|
|
<assert
|
|
model="res.currency"
|
|
id="INR"
|
|
string="Indian rupee rate in 2002"
|
|
context="{'date': '2002-06-01'}">
|
|
<test expr="str(rate)">0.632</test>
|
|
</assert>
|
|
</data>
|
|
</openerp>
|