示例#1
0
 def test_inbound_pickle(self):
     outbound = OutboundGroupSession()
     inbound = InboundGroupSession(outbound.session_key)
     pickle = inbound.pickle()
     InboundGroupSession.from_pickle(pickle)
示例#2
0
    def test_invalid_unpickle(self):
        with pytest.raises(ValueError):
            OutboundGroupSession.from_pickle(b"")

        with pytest.raises(ValueError):
            InboundGroupSession.from_pickle(b"")