[MERGE] Ensure timzone is unset before testing

bzr revid: fme@openerp.com-20121128175916-dm9t0b65d19ztesp
This commit is contained in:
Fabien Meghazi 2012-11-28 18:59:16 +01:00
commit a8e2c0d622
1 changed files with 4 additions and 0 deletions

View File

@ -1140,6 +1140,10 @@ class test_datetime(ImporterCase):
""" If there is no tz either in the context or on the user, falls back
to UTC
"""
self.registry('res.users').write(
self.cr, openerp.SUPERUSER_ID, [openerp.SUPERUSER_ID],
{'tz': False})
result = self.import_(['value'], [['2012-02-03 11:11:11']])
self.assertFalse(result['messages'])
self.assertEqual(