def serialize(self, message):
        for key, field in self.fields.items():
            message[key] = field.serialize(message[key])
Test to ensure changing wether a local route should supply directives or not works as expected
dataset/ETHPy150Open ClusterHQ/eliot/eliot/_validation.py/_MessageSerializer.serialize--crossover with--dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestLocalRouter.test_directives