'Make sure no update do not overwrite translations'

def test_noupdate(self):

    menu = self.env.ref('test_translation_import.menu_test_translation_import')
    menu.name = 'New    Name'
    odoo.tools.trans_load(self.cr, 'test_translation_import/i18n/fr.po', 'fr_FR', verbose=False)
    menu.with_context(lang='fr_FR').name = 'Nouveau    nom'
    odoo.tools.trans_load(self.cr, 'test_translation_import/i18n/fr.po', 'fr_FR', verbose=False, context={'overwrite': True})
    menu.refresh()
    self.assertEqual(menu.name, 'New    Name')
    self.assertEqual(menu.with_context(lang='fr_FR').name, 'Nouveau    nom')
