|
@ -82,7 +82,7 @@ class DateRangeTest(TransactionCase): |
|
|
'date_end': '2016-12-31', |
|
|
'date_end': '2016-12-31', |
|
|
'type_id': self.type.id, |
|
|
'type_id': self.type.id, |
|
|
}) |
|
|
}) |
|
|
self.assertEquals(dr.name, 'FS2016') |
|
|
|
|
|
|
|
|
self.assertEqual(dr.name, 'FS2016') |
|
|
|
|
|
|
|
|
def test_domain(self): |
|
|
def test_domain(self): |
|
|
date_range = self.env['date.range'] |
|
|
date_range = self.env['date.range'] |
|
@ -94,7 +94,7 @@ class DateRangeTest(TransactionCase): |
|
|
}) |
|
|
}) |
|
|
domain = dr.get_domain('my_field') |
|
|
domain = dr.get_domain('my_field') |
|
|
# By default the domain include limits |
|
|
# By default the domain include limits |
|
|
self.assertEquals( |
|
|
|
|
|
|
|
|
self.assertEqual( |
|
|
domain, |
|
|
domain, |
|
|
[('my_field', '>=', '2015-01-01'), |
|
|
[('my_field', '>=', '2015-01-01'), |
|
|
('my_field', '<=', '2015-12-31')]) |
|
|
('my_field', '<=', '2015-12-31')]) |