From: Magnus Jacobsson Date: Tue, 8 Sep 2020 21:44:36 +0000 (+0200) Subject: Add test of lefty usage X-Git-Tag: 2.46.0~20^2^2~87^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9f226b83b2ab67f2cc4777180d32e3a10ba9520;p=graphviz Add test of lefty usage --- 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'