summaryrefslogtreecommitdiff
path: root/test/t/test_wol.py
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:14 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:14 -0300
commitcc81eb120ad1a456f030f7b828697013a9b2b66a (patch)
treebb61702f98b407b2f7987faa846190fb3f002e55 /test/t/test_wol.py
parent8394526300cc384e53c470303aeb8b4fdcaf84a3 (diff)
parent95623d39d6029ba78ec96ad5ea08e9ac12629b91 (diff)
downloadbash-completion-cc81eb120ad1a456f030f7b828697013a9b2b66a.tar.gz
Update upstream source from tag 'upstream/2.11'
Update to upstream version '2.11' with Debian dir 932c2c1a6192441f3cd8897e72d737f2f0277f60
Diffstat (limited to 'test/t/test_wol.py')
-rw-r--r--test/t/test_wol.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/t/test_wol.py b/test/t/test_wol.py
index b7a622ee..bf04f76e 100644
--- a/test/t/test_wol.py
+++ b/test/t/test_wol.py
@@ -5,14 +5,15 @@ import pytest
class TestWol:
@pytest.mark.complete("wol ")
def test_1(self, completion):
- assert (
- completion == "00:00:00:00:00:00 11:11:11:11:11:11 "
+ assert all(
+ x in completion
+ for x in "00:00:00:00:00:00 11:11:11:11:11:11 "
"22:22:22:22:22:22 33:33:33:33:33:33".split()
)
@pytest.mark.complete("wol 00:")
def test_2(self, completion):
- assert completion == "00:00:00:00:00:00"
+ assert any(x.endswith("00:00:00:00:00") for x in completion)
@pytest.mark.complete("wol -", require_cmd=True)
def test_3(self, completion):