Beispiel #1
0
 def test_hex_to_bytes_type_raise(self, input_value):
     with pytest.raises(
             TypeError,
             match=
             "`hex_string` should be a 32 byte hash or hex encoded string.",
     ):
         hex_to_bytes(input_value)
Beispiel #2
0
 def test_hex_to_bytes(self, input_value, except_return):
     assert hex_to_bytes(input_value) == except_return