#NEWLINE# def test_missing_required_keys( self ) : #NEWLINE# #INDENT# code = textwrap . dedent ( '\n        write_files:\n        -   c0ntent: NDI=\n        ' ) #NEWLINE# expected_return = [ "Missing required keys from file information {'c0ntent': 'NDI='}" ] #NEWLINE# with testutils . LogSnatcher ( 'cloudbaseinit.plugins.common.userdataplugins.cloudconfigplugins.write_files' ) as snatcher : #NEWLINE# #INDENT# self . plugin . process_non_multipart ( code ) #NEWLINE# #UNINDENT# self . assertEqual ( expected_return , snatcher . output )