Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/l/eliot-0.3.0/eliot/tests/test_validation.py   eliot(Download)
                pass
        # If wrong serializers/validators were used, this will fail:
        logger.validate()
 
 

src/e/l/eliot-0.3.0/eliot/tests/test_output.py   eliot(Download)
        logger.write({'c': 1})
        self.assertEqual(logger.messages, [{'a': 'b'}, {'c': 1}])
        logger.validate()
 
 
        logger = MemoryLogger()
        logger.write({b'\u1234'.encode("utf-8"): 'b'})
        logger.validate()
 
 
        logger.write(message, validator)
        self.assertEqual(validator, [])
        logger.validate()
        self.assertEqual(validator, [message])