Lines Matching full:pytest
16 import pytest
34 return pytest.mark.parametrize(keys, [
45 @pytest.mark.requires_backend_interface(interface=CipherBackend)
46 @pytest.mark.requires_backend_interface(interface=HMACBackend)
47 @pytest.mark.supported(
82 with pytest.raises(InvalidToken):
87 with pytest.raises(InvalidToken):
92 with pytest.raises(InvalidToken):
97 with pytest.raises(InvalidToken):
102 with pytest.raises(TypeError):
104 with pytest.raises(TypeError):
116 @pytest.mark.parametrize("message", [b"", b"Abc!", b"\x00\xFF\x00\x80"])
122 with pytest.raises(ValueError):
131 with pytest.raises(InvalidToken):
135 @pytest.mark.requires_backend_interface(interface=CipherBackend)
136 @pytest.mark.requires_backend_interface(interface=HMACBackend)
137 @pytest.mark.supported(
159 with pytest.raises(InvalidToken):
163 with pytest.raises(ValueError):
167 with pytest.raises(TypeError):
187 with pytest.raises(InvalidToken):
219 with pytest.raises(InvalidToken):