From 8ea3b82c502e47b73e63935996c4be1537bd6d30 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 18 Aug 2014 01:03:34 +0200 Subject: [PATCH] Add assertion for CLI output --- tests/test_cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index cc2b783..371233f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -159,6 +159,8 @@ def test_simple_run(tmpdir): tmpdir.join('path_a/haha.txt').write('UID:haha') result = runner.invoke(cli.app, ['sync']) + assert result.output == ('Syncing my_pair\n' + 'Copying (uploading) item haha to my_b\n') assert tmpdir.join('path_b/haha.txt').read() == 'UID:haha'