'Check that we can exclude translated fields (bug lp:1071710)'

def test_lp1071710(self):

    self.env['ir.translation'].load_module_terms(['base'], ['fr_FR'])
    Country = self.env['res.country']
    be = self.env.ref('base.be')
    not_be = Country.with_context(lang='fr_FR').search([('name', '!=', 'Belgique')])
    self.assertNotIn(be, not_be)
    Partner = self.env['res.partner']
    agrolait = Partner.search([('name', '=', 'Agrolait')])
    not_be = Partner.search([('country_id', '!=', 'Belgium')])
    self.assertNotIn(agrolait, not_be)
    not_be = Partner.with_context(lang='fr_FR').search([('country_id', '!=', 'Belgique')])
    self.assertNotIn(agrolait, not_be)
