def test_as_dict(self):
        log_entry = pmap({
            'timestamp': 1,
            'task_uuid': 'unique',
            'task_level': [1],
            'foo': 'bar',
        })
        self.assertEqual(WrittenMessage.from_dict(log_entry).as_dict(), log_entry)
L{WrittenMessage.as_dict} returns the dictionary that will be serialized
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_message.py/WrittenMessageTests.test_as_dict