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'))
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"))