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 user id's"""
            self._write(dandelion.protocol.create_identity_id_list_request(time_cookie).encode())
            _, identityids = dandelion.protocol.parse_identity_id_list(self._read().decode())
 
            req_ids = [id for id in identityids if not self._db.contains_identity(id)]

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/protocol_test.py   Dandelion-Message-Service(Download)
        id3_str = encode_b64_bytes(id3).decode()
 
        parsed_tc, identityidlist = dandelion.protocol.parse_identity_id_list(''.join([';'.join([tc_str, id1_str, id2_str, id3_str]), '\n']))
        self.assertEqual(parsed_tc, tc)
        self.assertEqual(len(identityidlist), 3)
        self.assertTrue(id1 in identityidlist)
        self.assertTrue(id2 in identityidlist)
        self.assertTrue(id3 in identityidlist)
 
        parsed_tc, identityidlist = dandelion.protocol.parse_identity_id_list(''.join([tc_str, '\n']))
        id3 = dandelion.identity.generate()
 
        tc, identityids = dandelion.protocol.parse_identity_id_list(dandelion.protocol.create_identity_id_list(b'24', [id1, id2, id3]))
        self.assertEqual(tc, b'24')
        self.assertEqual(len(identityids), 3)