Commit 70bdbf67 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: add DummyLocalizer.get_default_language.

parent 11e2b506
...@@ -145,6 +145,9 @@ class DummyLocalizer: ...@@ -145,6 +145,9 @@ class DummyLocalizer:
and erp5_content message catalogs. It's a list. and erp5_content message catalogs. It's a list.
""" """
__allow_access_to_unprotected_subobjects__ = 1 __allow_access_to_unprotected_subobjects__ = 1
_default_language = 'en'
def __init__(self): def __init__(self):
self.erp5_ui = self.ui = DummyMessageCatalog() self.erp5_ui = self.ui = DummyMessageCatalog()
self.erp5_content = self.content = DummyMessageCatalog() self.erp5_content = self.content = DummyMessageCatalog()
...@@ -156,6 +159,9 @@ class DummyLocalizer: ...@@ -156,6 +159,9 @@ class DummyLocalizer:
return getattr(self, key) return getattr(self, key)
raise KeyError, key raise KeyError, key
def get_default_language(self):
return self._default_language
def get_selected_language(self): def get_selected_language(self):
return self.lang return self.lang
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment