diff options
| author | Christophe Simonis <chs@openerp.com> | 2010-05-31 16:00:12 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2010-05-31 16:00:12 +0200 |
| commit | ea3b439b5cb831d2e333ac0b7cb10d0411416e76 (patch) | |
| tree | 5048e2698e0d02540b032af26b6ef7d332368dcf /bin/addons/base/test/test_context.xml | |
| parent | f886032d5bcc61c125d601644139a6f60078ffa5 (diff) | |
[FIX] manual backport of http://bazaar.launchpad.net/~openerp/openobject-server/5.0/revision/chs@openerp.com-20100503080002-4128xzlmtcty0o3s
lp bug: https://launchpad.net/bugs/534769 fixed
bzr revid: chs@openerp.com-20100531140012-cugn1lasuhszhias
Diffstat (limited to 'bin/addons/base/test/test_context.xml')
| -rw-r--r-- | bin/addons/base/test/test_context.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/addons/base/test/test_context.xml b/bin/addons/base/test/test_context.xml new file mode 100644 index 00000000000..f9a6f2055a5 --- /dev/null +++ b/bin/addons/base/test/test_context.xml @@ -0,0 +1,20 @@ +<?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> |
