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