def setUp(self): super(TestCollectionIndexer, self).setUp() self.attrs = ('author_username', 'created', 'id', 'listed', 'modified', 'monthly_subscribers', 'rating', 'slug', 'subscribers', 'type', 'weekly_subscribers') self.collection = Collection.objects.create( application=FIREFOX.id, monthly_subscribers=666, rating=4, subscribers=999, weekly_subscribers=133,) self.indexer = CollectionIndexer()