[FIX] crm_partner_assign: better error message in yaml tests

bzr revid: chs@openerp.com-20130311132314-2jts903se5til87e
This commit is contained in:
Christophe Simonis 2013-03-11 14:23:14 +01:00
parent 45aa25187a
commit 4cb9eb8d4b
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@
!python {model: crm.lead}: |
lead = self.browse(cr, uid, ref('crm.crm_case_19'))
assert lead.partner_assigned_id.id == ref('base.res_partner_15') , "Opportuniy is not assigned nearest partner"
assert 50 < lead.partner_latitude < 55, "Latitude is wrong: 50 < %s < 55" % partner.partner_latitude
assert -2 < lead.partner_longitude < 2, "Longitude is wrong: -2 < %s < 2" % partner.partner_longitude
assert 50 < lead.partner_latitude < 55, "Latitude is wrong: 50 < %s < 55" % lead.partner_latitude
assert -2 < lead.partner_longitude < 2, "Longitude is wrong: -2 < %s < 2" % lead.partner_longitude
-
I forward this opportunity to its nearest partner.
-