diff options
Diffstat (limited to 'test/t/test_ip.py')
-rw-r--r-- | test/t/test_ip.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/t/test_ip.py b/test/t/test_ip.py index 320647f..0be088c 100644 --- a/test/t/test_ip.py +++ b/test/t/test_ip.py @@ -10,6 +10,19 @@ class TestIp: def test_2(self, completion): assert completion - @pytest.mark.complete("ip route replace ") + @pytest.mark.complete("ip route replace ", require_cmd=True) def test_r_r(self, completion): assert completion + + @pytest.mark.complete( + "ip monitor ", + require_cmd=True, + skipif="ip monitor help 2>/dev/null; (( $? != 255 ))", + ) + def test_monitor(self, completion): + assert "neigh" in completion + assert "all" in completion + + @pytest.mark.complete("ip -", require_cmd=True) + def test_options(self, completion): + assert "-family" in completion |