def METHOD_NAME(self):
    assert Addr.from_state({"peername": ("addr", 42)}).get_state() == {
        "peername": ("addr", 42)
    }
    assert Addr.from_state({"peername": ("addr", 42, 0, 0)}).get_state() == {
        "peername": ("addr", 42, 0, 0)
    }