From 1e786784520b5e39f60d132df3314fbef85500eb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 17 Dec 2013 19:43:33 +0000 Subject: Add basic test for CLI --- tests/cli_tests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/cli_tests.py (limited to 'tests/cli_tests.py') diff --git a/tests/cli_tests.py b/tests/cli_tests.py new file mode 100644 index 0000000..833cb33 --- /dev/null +++ b/tests/cli_tests.py @@ -0,0 +1,15 @@ +from nose.tools import istest, assert_equal + +import spur + +from .testing import test_path + + +_local = spur.LocalShell() + +@istest +def html_is_printed_to_stdout_if_output_file_is_not_set(): + docx_path = test_path("single-paragraph.docx") + result = _local.run(["mammoth", docx_path]) + assert_equal("", result.stderr_output) + assert_equal("

Walking on imported air

", result.output) -- cgit v1.2.3