Example #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) '))
Example #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)
Example #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)
Example #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) '))
Example #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)
Example #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)