'Ensure that a header containing return character sequences raise an
exception. Otherwise, multiple headers are created from single string.'

def test_header_no_return_chars(self, httpbin):

    headers_ret = {'foo': 'bar\r\nbaz:    qux'}
    headers_lf = {'foo': 'bar\nbaz:    qux'}
    headers_cr = {'foo': 'bar\rbaz:    qux'}
    with pytest.raises(InvalidHeader):
        r = requests.get(httpbin('get'), headers=headers_ret)
    with pytest.raises(InvalidHeader):
        r = requests.get(httpbin('get'), headers=headers_lf)
    with pytest.raises(InvalidHeader):
        r = requests.get(httpbin('get'), headers=headers_cr)
