Esempio n. 1
0
 def test_categories_addons_translations(self):
     data = generate_categories(APPS['android'])
     with self.activate(locale='es'):
         ok_(unicode(data[0].name).startswith(u'(español) '))
Esempio n. 2
0
 def test_categories_themes_generation(self):
     data = generate_categories()
     eq_(len(data), Category.objects.all().count())
     eq_(len(data), 15)
Esempio n. 3
0
 def test_categories_addons_generation(self):
     data = generate_categories(APPS['android'])
     eq_(len(data), Category.objects.all().count())
     eq_(len(data), 10)
Esempio n. 4
0
 def test_categories_themes_translations(self):
     with self.activate(locale='es'):
         data = generate_categories()
         ok_(unicode(data[0].name).startswith(u'(español) '))