def test_subsections(self): section_filters = {} section_filters['msgid__startswith'] = 'mes.' sect, subsect = get_sections_info(self.project.id, self.project_language.id, section_filters=section_filters) self.assertEqual(subsect, ['sag']) section_filters['msgid__startswith'] = 'mes.' sect, subsect = get_sections_info(self.new_project.id, self.project_language.id, section_filters=section_filters) self.assertEqual(subsect, ['sage'])
def test_sections(self): sect, subsect = get_sections_info(self.project.id, self.project_language.id) self.assertEqual(sect, ['mes']) sect, subsect = get_sections_info(self.new_project.id, self.project_language.id) self.assertEqual(sect, ['mes', 'mess'])