def test_Headers_update_args_kwargs(): h = Headers() h['foo'] = 'bar' h.update({'foo': 'baz'}, foo='qux') assert h['foo'] == 'qux'
def test_Headers_update_list(): h = Headers() h['foo'] = 'bar' h.update([('foo', 'baz')]) assert h['foo'] == 'baz'
def test_Headers_update_kwargs(): h = Headers() h['foo'] = 'bar' h.update(foo='baz') assert h['foo'] == 'baz'
def test_Headers_update_dict(): h = Headers() h['foo'] = 'bar' h.update({'foo': 'baz'}) assert h['foo'] == 'baz'