Пример #1
0
 def test_collections_addons_translations(self):
     generate_collection(self.addon, APPS['android'])
     with self.activate(locale='es'):
         collection_name = unicode(Collection.objects.last().name)
         ok_(collection_name.startswith(u'(español) '))
Пример #2
0
 def test_collections_addons_generation(self):
     generate_collection(self.addon, APPS['android'])
     eq_(Collection.objects.all().count(), 1)
     eq_(CollectionAddon.objects.last().addon, self.addon)
     eq_(FeaturedCollection.objects.last().application, APPS['android'].id)
Пример #3
0
 def test_collections_themes_generation(self):
     generate_collection(self.addon)
     eq_(Collection.objects.all().count(), 1)
     eq_(CollectionAddon.objects.last().addon, self.addon)
     eq_(FeaturedCollection.objects.all().count(), 0)
Пример #4
0
 def test_collections_addons_translations(self):
     generate_collection(self.addon, APPS['android'])
     with self.activate(locale='es'):
         collection_name = unicode(Collection.objects.last().name)
         ok_(collection_name.startswith(u'(español) '))
Пример #5
0
 def test_collections_addons_generation(self):
     generate_collection(self.addon, APPS['android'])
     eq_(Collection.objects.all().count(), 1)
     eq_(CollectionAddon.objects.last().addon, self.addon)
     eq_(FeaturedCollection.objects.last().application, APPS['android'].id)
Пример #6
0
 def test_collections_themes_generation(self):
     generate_collection(self.addon)
     eq_(Collection.objects.all().count(), 1)
     eq_(CollectionAddon.objects.last().addon, self.addon)
     eq_(FeaturedCollection.objects.all().count(), 0)