#NEWLINE# def test_wrong_b64_content( self ) : #NEWLINE# #INDENT# tmp = self . _get_tempfile ( ) #NEWLINE# code = textwrap . dedent ( '\n        write_files:\n        -   content: l\n            encoding: b64\n            path: {}\n        ' . format ( tmp ) ) #NEWLINE# with testutils . LogSnatcher ( 'cloudbaseinit.plugins.common.userdataplugins.cloudconfigplugins.write_files' ) as snatcher : #NEWLINE# #INDENT# self . plugin . process_non_multipart ( self ) #NEWLINE# #UNINDENT# self . assertTrue ( snatcher . output [ 0 ] . startswith ( 'Fail to decode base64 content.' ) )