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

from conftest import in_container


class TestIfdown:
    @pytest.mark.xfail(in_container(), reason="Probably fails in a container")
    @pytest.mark.complete("ifdown ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("ifdown bash-completion ")
    def test_2(self, completion):
        assert not completion