def test_append(self): manager = HeaderManager() manager.set(("x", "y"), ("foo", "bar")) assert manager.get("x") == "y" assert manager.get("foo") == "bar" manager.append(("foo", "baz")) # appends to foo assert manager.get("foo") == "bar,baz" assert manager.get("x") == "y"
def test_append_from_wire(self): manager = HeaderManager() manager.set(("foo", "bar")) manager.append((b"foo", b"baz"), from_wire=True) assert manager.get("foo") == "bar,baz"