Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/network.py   Dandelion-Message-Service(Download)
            """Request and read message id's"""
            self._write(dandelion.protocol.create_message_id_list_request(time_cookie).encode())
            tc, msgids = dandelion.protocol.parse_message_id_list(self._read().decode())
 
            req_msgids = [mid for mid in msgids if not self._db.contains_message(mid)]

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/protocol_test.py   Dandelion-Message-Service(Download)
        m3_str = encode_b64_bytes(m3).decode()
 
        parsed_tc, msgidlist = dandelion.protocol.parse_message_id_list(''.join([';'.join([tc_str, m1_str, m2_str, m3_str]), '\n']))
        self.assertEqual(parsed_tc, tc)
        self.assertEqual(len(msgidlist), 3)
        self.assertTrue(m1 in msgidlist)
        self.assertTrue(m2 in msgidlist)
        self.assertTrue(m3 in msgidlist)
 
        parsed_tc, msgidlist = dandelion.protocol.parse_message_id_list(''.join([tc_str, '\n']))
        msg4 = dandelion.message.create('M3', ts, None, id2)
 
        tc, msgids = dandelion.protocol.parse_message_id_list(dandelion.protocol.create_message_id_list(b'24', [msg1, msg2, msg3, msg4]))
        self.assertEqual(tc, b'24')
        self.assertEqual(len(msgids), 4)