예제 #1
0
 def test_lang_file_is_active(self):
     """
     `lang_file_is_active` should return true if lang file has the
     comment, and false otherwise.
     """
     ok_(lang_file_is_active('active_de_lang_file', 'de'))
     ok_(not lang_file_is_active('active_de_lang_file', 'es'))
     ok_(not lang_file_is_active('inactive_de_lang_file', 'de'))
     ok_(not lang_file_is_active('does_not_exist', 'de'))
예제 #2
0
 def test_lang_file_is_active(self):
     """
     `lang_file_is_active` should return true if lang file has the
     comment, and false otherwise.
     """
     ok_(lang_file_is_active('active_de_lang_file', 'de'))
     ok_(not lang_file_is_active('active_de_lang_file', 'es'))
     ok_(not lang_file_is_active('inactive_de_lang_file', 'de'))
     ok_(not lang_file_is_active('does_not_exist', 'de'))
예제 #3
0
파일: test_dotlang.py 프로젝트: rlr/bedrock
 def test_lang_file_is_active(self):
     """
     `lang_file_is_active` should return true if lang file has the
     comment, and false otherwise.
     """
     ok_(lang_file_is_active("active_de_lang_file", "de"))
     ok_(not lang_file_is_active("active_de_lang_file", "es"))
     ok_(not lang_file_is_active("inactive_de_lang_file", "de"))
     ok_(not lang_file_is_active("does_not_exist", "de"))