def log_collection(self, num, prefix='foo'):
        for i in xrange(num):
            c = Collection.objects.create(name='%s %d' % (prefix, i))
            amo.log(amo.LOG.ADD_TO_COLLECTION, self.addon, c)
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_feeds.py/TestActivity.log_collection/original