From a9f226b83b2ab67f2cc4777180d32e3a10ba9520 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 8 Sep 2020 23:44:36 +0200 Subject: [PATCH] Add test of lefty usage --- rtest/test_regression.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 2fbc48b2e..61568b349 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -330,3 +330,15 @@ def test_1813(): universal_newlines=True) assert 'Usage' in output, 'gvedit -? did not show usage' + +def test_1818(): + ''' + lefty -? should show usage + https://gitlab.com/graphviz/graphviz/-/issues/1813 + ''' + + output = subprocess.check_output(['lefty', '-?'], + stderr=subprocess.STDOUT, + universal_newlines=True) + + assert 'Usage' in output, 'lefty -? did not show usage' -- 2.40.0