def test_newWithSerializer(self):
        serializer = object()
        msg = Message.new(serializer, x=1)
        self.assertIs(msg._serializer, serializer)
Generate a number of deferred awards for a badge
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_message.py/MessageTests.test_newWithSerializer--crossover with--dataset/ETHPy150Open mozilla/django-badger/badger/models.py/DeferredAwardManager.generate