[MERGE] Ensure timzone is unset before testing
bzr revid: fme@openerp.com-20121128175916-dm9t0b65d19ztesp
This commit is contained in:
commit
a8e2c0d622
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue