diff options
Diffstat (limited to 'test/t/test_lftp.py')
-rw-r--r-- | test/t/test_lftp.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/t/test_lftp.py b/test/t/test_lftp.py new file mode 100644 index 00000000..18506f61 --- /dev/null +++ b/test/t/test_lftp.py @@ -0,0 +1,14 @@ +import pytest + +from conftest import assert_bash_exec + + +@pytest.mark.bashcomp(pre_cmds=("HOME=$PWD/lftp",)) +class TestLftp: + @pytest.mark.complete("lftp ") + def test_1(self, bash, completion): + hosts = assert_bash_exec( + bash, "compgen -A hostname", want_output=True + ).split() + assert all(x in completion for x in hosts) + assert "lftptest" in completion # defined in lftp/.lftp/bookmarks |