Debian Codegraph @

src/trio/_core/_tests/test_tutil.py

raw
1 import pytest
2
3 from .tutil import check_sequence_matches
4
5
6 def test_check_sequence_matches() -> None:
7 check_sequence_matches([1, 2, 3], [1, 2, 3])
8 with pytest.raises(AssertionError):
9 check_sequence_matches([1, 3, 2], [1, 2, 3])
10 check_sequence_matches([1, 2, 3, 4], [1, {2, 3}, 4])
11 check_sequence_matches([1, 3, 2, 4], [1, {2, 3}, 4])
12 with pytest.raises(AssertionError):
13 check_sequence_matches([1, 2, 4, 3], [1, {2, 3}, 4])