summaryrefslogtreecommitdiffstats
path: root/test/t/test_chroot.py
blob: 08ace867f38b7e0c6462982fee64f4027afaf38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pytest


class TestChroot:
    @pytest.mark.complete("chroot ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("/bin/chroot shared/default/")
    def test_2(self, completion):
        """Should complete dirs only, also when invoked using full path."""
        assert completion == ["bar bar.d/", "foo.d/"]

    @pytest.mark.complete("chroot -", require_longopt=True)
    def test_options(self, completion):
        assert completion