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

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

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/protocol_test.py   Dandelion-Message-Service(Download)
        self.assertEqual(dandelion.protocol.create_identity_list_request([]), 'GETIDENTITIES\n')
 
        str_ = dandelion.protocol.create_identity_list_request([id1, id2, id3])
        self.assertTrue(dandelion.protocol.is_identity_list_request(str_))
        self.assertTrue('GETIDENTITIES ' in str_)
    def test_roundtrip_identity_list_request(self):
        """Test identity list request creation / parsing by a round trip"""
        identityreq = dandelion.protocol.create_identity_list_request()
        res = dandelion.protocol.parse_identity_list_request(identityreq)
        self.assertEqual(res, None)
 
        identityreq = dandelion.protocol.create_identity_list_request([b'1', b'2'])