Пример #1
0
def test_Headers_update_args_kwargs():
    h = Headers()
    h['foo'] = 'bar'
    h.update({'foo': 'baz'}, foo='qux')
    assert h['foo'] == 'qux'
Пример #2
0
def test_Headers_update_list():
    h = Headers()
    h['foo'] = 'bar'
    h.update([('foo', 'baz')])
    assert h['foo'] == 'baz'
Пример #3
0
def test_Headers_update_kwargs():
    h = Headers()
    h['foo'] = 'bar'
    h.update(foo='baz')
    assert h['foo'] == 'baz'
Пример #4
0
def test_Headers_update_dict():
    h = Headers()
    h['foo'] = 'bar'
    h.update({'foo': 'baz'})
    assert h['foo'] == 'baz'