Ejemplo 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) '))
Ejemplo n.º 2
0
 def test_categories_addons_generation(self):
     data = generate_categories(APPS['android'])
     eq_(len(data), Category.objects.all().count())
     eq_(len(data), 10)
Ejemplo n.º 3
0
 def test_categories_themes_translations(self):
     with self.activate(locale='es'):
         data = generate_categories()
         ok_(unicode(data[0].name).startswith(u'(español) '))
Ejemplo n.º 4
0
 def test_categories_themes_generation(self):
     data = generate_categories()
     eq_(len(data), Category.objects.all().count())
     eq_(len(data), 15)
Ejemplo n.º 5
0
 def test_categories_themes_translations(self):
     with self.activate(locale='es'):
         data = generate_categories()
         ok_(unicode(data[0].name).startswith(u'(español) '))