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