def METHOD_NAME(self):
    c = BaseClient(Mock(name='hub'))
    parser = c._header_parser
    headers = http.Headers()
    c.on_header(headers, 'HTTP/1.1')
    c.on_header(headers, 'x-foo-bar: 123')
    c.on_header(headers, 'People: George Costanza')
    assert headers._prev_key == 'People'
    c.on_header(headers, ' Jerry Seinfeld')
    c.on_header(headers, ' Elaine Benes')
    c.on_header(headers, ' Cosmo Kramer')
    assert not headers.complete
    c.on_header(headers, '')
    assert headers.complete
    with pytest.raises(KeyError):
        parser.throw(KeyError('foo'))
    c.on_header(headers, '')
    assert headers['X-Foo-Bar'] == '123'
    assert (headers['People'] ==
            'George Costanza Jerry Seinfeld Elaine Benes Cosmo Kramer')