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

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

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/gui/gui.py   Dandelion-Message-Service(Download)
    def _say(self, msg, sign=None, receiver_name=None):
        print("_say %s" % (msg))
        if receiver_name:
            receiver_ = dandelion.identity.generate() # Should look up id of receiver
        else:

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/ui.py   Dandelion-Message-Service(Download)
    def say(self, msg, sign=None, receiver_name=None):
 
        if receiver_name:
            receiver_ = dandelion.identity.generate() # Should look up id of receiver
        else:

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/config.py   Dandelion-Message-Service(Download)
                pass
 
        self._identity = dandelion.identity.generate()
        self._content_db.add_private_identity(self._identity)
        id_str = encode_b64_bytes(self._identity.fingerprint).decode()

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/message_test.py   Dandelion-Message-Service(Download)
    def test_construction_with_sender(self):
        """Testing message construction when specifying a sender"""
 
        txt = "text"
        id = dandelion.identity.generate()
    def test_construction_with_receiver(self):
        """Testing message construction when specifying a receiver"""
 
        txt = "plain_text"
        id = dandelion.identity.generate()
    def test_construction_with_sender_and_receiver(self):
        """Testing message construction when specifying a sender and a receiver"""
 
        txt = "plain_text"
        id_sender = dandelion.identity.generate()
        id_receiver = dandelion.identity.generate()
    def test_construction_with_factory(self):
        txt = "plain_text"
        id = dandelion.identity.generate()
        ts = 1337
        m = dandelion.message.create(txt, timestamp=ts, sender=id)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/identity_test.py   Dandelion-Message-Service(Download)
    def test_creation(self):
        id = dandelion.identity.generate()
        self.assertIsNotNone(id.fingerprint)
 
    def test_identity_info(self):
        """Test the IdentityInfo class"""
 
        db = ContentDB(tempfile.NamedTemporaryFile().name)
        id_a = dandelion.identity.generate()

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/database_test.py   Dandelion-Message-Service(Download)
 
        # New message, new cookie
        id1 = dandelion.identity.generate()
        id2 = dandelion.identity.generate()
        second_msg = dandelion.message.create('Another Single Message', sender=id1, receiver=id2)
 
        # New identity, new cookie
        identity = dandelion.identity.generate()
        third_cookie = db.add_identities([identity])
        self.assertNotEqual(third_cookie, None)
        db = ContentDB(tempfile.NamedTemporaryFile().name)
 
        id1 = dandelion.identity.generate()
        id2 = dandelion.identity.generate()
        first_msg_list = [Message('A'), Message('B'), Message('III', timestamp=3),