Example #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'))
Example #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'))
Example #3
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"))