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)
def test_hex_to_bytes(self, input_value, except_return): assert hex_to_bytes(input_value) == except_return