Skip to content

Commit

Permalink
test: improve tshark -O arg completion test
Browse files Browse the repository at this point in the history
Refs #243
  • Loading branch information
scop committed Apr 22, 2019
1 parent 7abc83e commit 4548e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/t/test_tshark.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def test_2(self, completion):

@pytest.mark.complete("tshark -O foo,htt")
def test_3(self, completion):
assert completion
# When there's only one completion, it's be the one with "foo," prefix;
# when multiple (e.g. http and http2), it's the completion alone.
assert completion == "foo,http" or "http" in completion

@pytest.mark.complete("tshark -o tcp")
def test_4(self, completion):
Expand Down

0 comments on commit 4548e71

Please sign in to comment.