def test_basic(self):
        a = Addon.objects.get()
        amo.log(amo.LOG['CREATE_ADDON'], a)
        entries = ActivityLog.objects.for_addons(a)
        assert len(entries) == 1
        assert entries[0].arguments[0] == a
        for x in ('Delicious Bookmarks', 'was created.'):
            assert x in unicode(entries[0])
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_models.py/TestActivityLog.test_basic/original