17 lines
559 B
Python
17 lines
559 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import openerp
|
|
from openerp.tests import common
|
|
|
|
class TestTermCount(common.TransactionCase):
|
|
|
|
def test_count_term(self):
|
|
"""
|
|
Just make sure we have as many translation entries as we wanted.
|
|
"""
|
|
openerp.tools.trans_load(self.cr, 'test_translation_import/i18n/fr.po', 'fr_FR', verbose=False)
|
|
ids = self.registry('ir.translation').search(self.cr, self.uid,
|
|
[('src', '=', '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')])
|
|
self.assertEqual(len(ids), 2)
|
|
|