blob: c2d8344d8d3795a9e3768857f630d6c59cf52f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import os
import pytest
class TestChsh:
@pytest.mark.complete("chsh ")
def test_1(self, completion):
assert completion
@pytest.mark.complete("chsh -s ")
def test_shells(self, completion):
if os.path.exists("/etc/shells"):
assert completion
else:
assert not completion
@pytest.mark.complete("chsh -", require_cmd=True)
def test_3(self, completion):
assert completion
@pytest.mark.complete("chsh --root shells -s ")
def test_chroot_shells(self, completion):
assert completion == "/bash/completion/canary"
|