[FIX] project_long_term: fix case1 test so it works during week-ends too

bzr revid: odo@openerp.com-20111105164754-yi4mo2pf6yy50ud6
This commit is contained in:
Olivier Dony
2011-11-05 17:47:54 +01:00
parent 6f77ce98c7
commit ea30b379bb
@@ -65,7 +65,7 @@
start = (datetime.date.today()).strftime('%Y-%m-%d')
end = (datetime.date.today() + relativedelta(days=1)).strftime('%Y-%m-%d 17:00:00')
first_phase = self.browse(cr, uid, ref('project_phase_firstphase0_case1'))
assert (first_phase.date_start[:10] == start),'Start dates are wrong: %s != %s !' % (first_phase.date_start[:10], start)
assert (first_phase.date_start[:10] >= start),'Start dates are wrong: %s < %s !' % (first_phase.date_start[:10], start)
assert (first_phase.date_end >= end),'End dates are wrong: %s <%s!' % (first_phase.date_end, end)
second_phase = self.browse(cr, uid, ref('project_phase_secondphase0_case2'))