diff --git a/tests/unittests/cmd/test_main.py b/tests/unittests/cmd/test_main.py index 3b317a21d3a..99a3fc670b8 100644 --- a/tests/unittests/cmd/test_main.py +++ b/tests/unittests/cmd/test_main.py @@ -204,6 +204,22 @@ def test_main_sys_argv( ), True, ), + # write_files with source file don't wait + ( + mock.Mock(), + textwrap.dedent( + """\ + #cloud-config + write_files: + - source: + uri: /tmp/hi + headers: + Authorization: Basic stuff + User-Agent: me + """ + ), + False, + ), # write_files without 'source' don't wait ( mock.Mock(),