diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-11 13:15:35 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2010-09-11 13:15:35 +0530 |
| commit | a8f2a74385f99f419a4d231e5e6e3f60f90e9947 (patch) | |
| tree | 18368c88cc0394909405165d5845b896a0e954c4 /bin/addons/base/test/test_context.xml | |
| parent | 7c72bf14919198c03695d90f527bffedd5254379 (diff) | |
[REVIEW]: review the currency rates
bzr revid: mga@tinyerp.com-20100911074535-qeyljzgh80cie1wv
Diffstat (limited to 'bin/addons/base/test/test_context.xml')
| -rw-r--r-- | bin/addons/base/test/test_context.xml | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/bin/addons/base/test/test_context.xml b/bin/addons/base/test/test_context.xml index f9a6f2055a5..d6c6fa0afed 100644 --- a/bin/addons/base/test/test_context.xml +++ b/bin/addons/base/test/test_context.xml @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> - <!-- Test context attribute for unit tests --> - <data context="{'date': '2001-06-01'}"> + <!-- Test context attribute for unit tests --> + <data context="{'date': '2009-06-01'}"> +<!-- <assert --> +<!-- model="res.currency"--> +<!-- id="INR"--> +<!-- string="Indian rupee rate in 2009">--> +<!-- <!-- date specified in data element's context -->--> +<!-- <test expr="str(rate)">65.8287</test>--> +<!-- </assert>--> <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> + model="res.currency" + id="INR" + string="Indian rupee rate in 2002" + context="{'date': '2010-06-01'}"> + <test expr="str(rate)">58.8287</test> </assert> </data> </openerp> |
