Exemplo n.º 1
0
    def setUpPostSession(self):
        TestAsNPeers.setUpPostSession(self)

        f = open(self.peers[0].urlfilename, "rb")
        swarmurl = f.read()
        f.close()
        swarmurl = swarmurl.strip()
        idx = swarmurl.find("/")
        if idx == -1:
            self.assertFalse(True)
        else:
            liveswarmidhex = swarmurl[idx + 1 :]
            print >>sys.stderr, "test: SwarmID <" + liveswarmidhex + ">"
            self.peers[1].liveswarmid = binascii.unhexlify(liveswarmidhex)
Exemplo n.º 2
0
    def setUpPostSession(self):
        TestAsNPeers.setUpPostSession(self)

        f = open(self.peers[0].urlfilename, "rb")
        swarmurl = f.read()
        f.close()
        swarmurl = swarmurl.strip()
        idx = swarmurl.find("/")
        if idx == -1:
            self.assertFalse(True)
        else:
            liveswarmidhex = swarmurl[idx + 1:]
            print >> sys.stderr, "test: SwarmID <" + liveswarmidhex + ">"
            self.peers[1].liveswarmid = binascii.unhexlify(liveswarmidhex)
Exemplo n.º 3
0
 def setUpPostSession(self):
     TestAsNPeers.setUpPostSession(self)
Exemplo n.º 4
0
 def setUpPostSession(self):
     TestAsNPeers.setUpPostSession(self)