<?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>
    
    <!-- Test count attribute for assertions -->
    <data>
    	<assert
    		model="res.currency.rate"
    		search="[('currency_id', '=', ref('INR'))]"
    		count="3"
    		string="Rate entries for Indian rupee">
    		<test expr="True"/>
    	</assert>
    </data>
</openerp>
