14
14
from ubiquity import i18n, plugin_manager
15
15
from helpers import builtin_patch
17
18
def side_effect_factory(real_method):
18
19
new_path = 'd-i/source/localechooser/debian/localechooser' \
19
20
'/usr/share/localechooser/languagelist.data.gz'
20
22
def side_effect(path, *args, **kw):
21
23
if path.endswith('languagelist.data.gz'):
22
24
return real_method(new_path, *args, **kw)
24
26
return real_method(path, *args, **kw)
27
31
class OEMUserLanguageTests(unittest.TestCase):
29
33
for obj in ('ubiquity.misc.execute',