コード例 #1
0
ファイル: httpmftest.py プロジェクト: JuanCabre/libswift
 def setUpPostSession(self):
     TestAsServer.setUpPostSession(self)
     
     #CMD = "START tswift:/"+binascii.hexlify(self.swarmid)+" "+self.destdir+"\r\n"
     CMD = "START tswift://127.0.0.1:"+str(self.listenport)+"/"+binascii.hexlify(self.swarmid)+" "+self.destdir+"\r\n"
     self.cmdsock.send(CMD)
     
     self.urlprefix = "http://127.0.0.1:"+str(self.httpport)+"/"+binascii.hexlify(self.swarmid)
コード例 #2
0
    def setUpPostSession(self):
        TestAsServer.setUpPostSession(self)

        #CMD = "START tswift:/"+binascii.hexlify(self.swarmid)+" "+self.destdir+"\r\n"
        CMD = "START tswift://127.0.0.1:" + str(
            self.listenport) + "/" + binascii.hexlify(
                self.swarmid) + " " + self.destdir + "\r\n"
        self.cmdsock.send(CMD)

        self.urlprefix = "http://127.0.0.1:" + str(
            self.httpport) + "/" + binascii.hexlify(self.swarmid)
コード例 #3
0
ファイル: livetest-umt1.py プロジェクト: JuanCabre/libswift
    def setUpPostSession(self):
        TestAsServer.setUpPostSession(self)

        f = open(self.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.liveswarmid = binascii.unhexlify(liveswarmidhex)
コード例 #4
0
ファイル: livetest-umt1.py プロジェクト: tenebreux/libswift-1
    def setUpPostSession(self):
        TestAsServer.setUpPostSession(self)

        f = open(self.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.liveswarmid = binascii.unhexlify(liveswarmidhex)
コード例 #5
0
    def setUpPostSession(self):
        TestAsServer.setUpPostSession(self)

        time.sleep(2)
コード例 #6
0
ファイル: requesttest.py プロジェクト: JuanCabre/libswift
 def setUpPostSession(self):
     TestAsServer.setUpPostSession(self)
コード例 #7
0
ファイル: livetest.py プロジェクト: tenebreux/libswift-1
 def setUpPostSession(self):
     TestAsServer.setUpPostSession(self)
コード例 #8
0
ファイル: statsgwtest.py プロジェクト: JuanCabre/libswift
 def setUpPostSession(self):
     TestAsServer.setUpPostSession(self)
     
     time.sleep(2)