blob: 62d8eb4ac109fd3c1d6ffec9e9b76c7c519471ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import pytest
from conftest import in_docker
class TestIfup:
@pytest.mark.xfail(in_docker(), reason="Probably fails in docker")
@pytest.mark.complete("ifup ")
def test_1(self, completion):
assert completion
@pytest.mark.complete("ifup --", skipif="! ifup --help &>/dev/null")
def test_2(self, completion):
assert completion
@pytest.mark.complete("ifup bash-completion ")
def test_3(self, completion):
assert not completion
|