def test_inbound_pickle(self): outbound = OutboundGroupSession() inbound = InboundGroupSession(outbound.session_key) pickle = inbound.pickle() InboundGroupSession.from_pickle(pickle)
def test_invalid_unpickle(self): with pytest.raises(ValueError): OutboundGroupSession.from_pickle(b"") with pytest.raises(ValueError): InboundGroupSession.from_pickle(b"")