Ejemplo n.º 1
0
 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'])
Ejemplo n.º 2
0
 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'])