[FIX] crm_partner_assign: test: be more lenient about partner localisation

As of today, google maps tend to localize:
     Avenue de la Liberté 56, 1000 Brussels, , Belgium
  As:
     Place de la Liberté 56, 1000 Bruxelles, Belgique
  making geolocalizaton of 'crm.crm_case_abcfuelcounits0' fail

bzr revid: xal@openerp.com-20120524152946-y4itnc3n4fps3prx
This commit is contained in:
Xavier ALT
2012-05-24 17:29:46 +02:00
parent 0373019bcf
commit 0d15a00f96
@@ -10,8 +10,8 @@
-
!python {model: res.partner}: |
partner = self.browse(cr, uid, ref('base.res_partner_ericdubois0'))
assert partner.partner_latitude == 50.4530495 , "Latitude is wrong"
assert partner.partner_longitude == 3.9693885 , "Longitude is wrong"
assert 50 < partner.partner_latitude < 51 , "Latitude is wrong"
assert 3 < partner.partner_longitude < 5 , "Longitude is wrong"
-
I assign nearest partner to opportunity.
-
@@ -23,8 +23,8 @@
!python {model: crm.lead}: |
lead = self.browse(cr, uid, ref('crm.crm_case_abcfuelcounits0'))
assert lead.partner_assigned_id.id == ref('base.res_partner_ericdubois0') , "Opportuniy is not assigned nearest partner"
assert lead.partner_latitude == 50.8495239 , "Latitude is wrong"
assert lead.partner_longitude == 4.3667002 , "Longitude is wrong"
assert 50 < lead.partner_latitude < 51 , "Latitude is wrong"
assert 3 < lead.partner_longitude < 5 , "Longitude is wrong"
-
I forward this opportunity to its nearest partner.
-