diff options
| author | Olivier Dony <odo@openerp.com> | 2011-11-02 15:47:24 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-11-02 15:47:24 +0100 |
| commit | ad7e2a5ee9053d948a16f5da4ea128327eccf201 (patch) | |
| tree | b3a49d804ed57d00dbecaffa7ae971a41e3d16a7 /addons/project_long_term | |
| parent | 3d22bb8b55d48e5ee8226f023555f003288b157a (diff) | |
[IMP] project_long_term: slightly better error output in scheduling test 1
bzr revid: odo@openerp.com-20111102144724-d5iye0uxpd7p8j0s
Diffstat (limited to 'addons/project_long_term')
| -rw-r--r-- | addons/project_long_term/test/test_schedule_phases_case1.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/project_long_term/test/test_schedule_phases_case1.yml b/addons/project_long_term/test/test_schedule_phases_case1.yml index ef8d0410439..76f134afb57 100644 --- a/addons/project_long_term/test/test_schedule_phases_case1.yml +++ b/addons/project_long_term/test/test_schedule_phases_case1.yml @@ -65,10 +65,12 @@ 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, 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')) start = first_phase.date_end end = (datetime.date.today() + relativedelta(days=5)).strftime('%Y-%m-%d') - assert (second_phase.date_start >= start and second_phase.date_end >= end),'Dates are wrong on second phase!' + assert second_phase.date_start >= start, 'Dates are wrong on second phase: %s < %s!' % (second_phase.date_start, start) + assert second_phase.date_end >= end, 'Dates are wrong on second phase %s < %s!' % (second_phase.date_end, end) + |
