#NEWLINE# def test_validate_preserve_errors( conf ) : #NEWLINE# #INDENT# validator = Validator ( ) #NEWLINE# result = conf . validate ( validator , preserve_errors = True ) #NEWLINE# assert ( not result [ 'value' ] ) #NEWLINE# assert ( not result [ 'missing-section' ] ) #NEWLINE# section = result [ 'section' ] #NEWLINE# assert ( not section [ 'value' ] ) #NEWLINE# assert ( not section [ 'sub-section' ] [ 'value' ] ) #NEWLINE# assert ( not section [ 'missing-subsection' ] )