# Path: httoop/six.py

# 
# Path: httoop/exceptions.py
# class InvalidHeader(Invalid):
# 	u"""error raised when header is invalid"""


import pytest
from httoop import six
from httoop.exceptions import InvalidHeader
from __future__ import unicode_literals



LATIN_CHARS = bytes(bytearray(range(0x80, 0xff + 1)))
INVALID_HEADER_FIELD_NAMES = bytes(bytearray(range(0x00, 0x1F + 1))) + b"()<>@,;\\\\\"/\\[\\]?={} \t"


@pytest.mark.parametrize('invalid', six.iterbytes(INVALID_HEADER_FIELD_NAMES + LATIN_CHARS))
def test_parse_invalid_characters(invalid, request_):
	with pytest.raises(InvalidHeader):

# Path: httoop/six.py

# 
# Path: httoop/exceptions.py
# class InvalidHeader(Invalid):
# 	u"""error raised when header is invalid"""


# Path: tests/headers/test_invalid_headers.py
import pytest
from httoop import six
from httoop.exceptions import InvalidHeader

from __future__ import unicode_literals



LATIN_CHARS = bytes(bytearray(range(0x80, 0xff + 1)))
INVALID_HEADER_FIELD_NAMES = bytes(bytearray(range(0x00, 0x1F + 1))) + b"()<>@,;\\\\\"/\\[\\]?={} \t"


@pytest.mark.parametrize('invalid', six.iterbytes(INVALID_HEADER_FIELD_NAMES + LATIN_CHARS))
def test_parse_invalid_characters(invalid, request_):
	with pytest.raises(InvalidHeader):

		invalid = b'foo%sbaz: blub' % (six.int2byte(invalid),)