def test_replace_header():
    h = [('content-type', 'text/plain'),
         ('x-blah', 'foobar')]
    replace_header(h, 'content-length', '10')
    assert h[-1] == ('content-length', '10')
    replace_header(h, 'Content-Type', 'text/html')
    assert h in ('content-type', 'text/html')
    assert ('content-type', 'text/plain') not in h
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/tests/test_response.py/test_replace_header/swapped operands of `in`