當前位置: 首頁>>代碼示例>>Python>>正文


Python UpdateVerifyConfig.ftp_server方法代碼示例

本文整理匯總了Python中release.updates.verify.UpdateVerifyConfig.ftp_server方法的典型用法代碼示例。如果您正苦於以下問題:Python UpdateVerifyConfig.ftp_server方法的具體用法?Python UpdateVerifyConfig.ftp_server怎麽用?Python UpdateVerifyConfig.ftp_server使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在release.updates.verify.UpdateVerifyConfig的用法示例。


在下文中一共展示了UpdateVerifyConfig.ftp_server方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: testEq

# 需要導入模塊: from release.updates.verify import UpdateVerifyConfig [as 別名]
# 或者: from release.updates.verify.UpdateVerifyConfig import ftp_server [as 別名]
 def testEq(self):
     self.uvc.product = "foo"
     self.uvc.channel = "betatest"
     self.uvc.platform = "bar"
     self.uvc.aus_server = "aus"
     self.uvc.ftp_server = "ftp"
     self.uvc.to = "/firefox/4.0rc2.tar.bz2"
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "foo"
     uvc2.channel = "betatest"
     uvc2.platform = "bar"
     uvc2.aus_server = "aus"
     uvc2.ftp_server = "ftp"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     self.assertEquals(self.uvc, uvc2)
開發者ID:EkkiD,項目名稱:build-tools,代碼行數:17,代碼來源:test_release_updates_verify.py

示例2: testGetQuickReleaseTests

# 需要導入模塊: from release.updates.verify import UpdateVerifyConfig [as 別名]
# 或者: from release.updates.verify.UpdateVerifyConfig import ftp_server [as 別名]
 def testGetQuickReleaseTests(self):
     self.uvc.read(self.config)
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.platform = "Linux_x86-gcc3"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus2.mozilla.org"
     uvc2.ftp_server = "stage.mozilla.org/firefox"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     uvc2.addRelease("4.0b12", build_id="777",
                     locales=["de", "ja", "zh-TW"],
                     patch_types=["complete"],
                     from_path=None)
     uvc2.addRelease("3.7a1", build_id="666",
                     locales=["en-US"],
                     patch_types=["complete"],
                     from_path=None)
     self.assertEquals(self.uvc.getQuickReleaseTests(), uvc2.releases)
開發者ID:EkkiD,項目名稱:build-tools,代碼行數:20,代碼來源:test_release_updates_verify.py

示例3: testGetChunk

# 需要導入模塊: from release.updates.verify import UpdateVerifyConfig [as 別名]
# 或者: from release.updates.verify.UpdateVerifyConfig import ftp_server [as 別名]
 def testGetChunk(self):
     self.uvc.read(self.config)
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.platform = "Linux_x86-gcc3"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus2.mozilla.org"
     uvc2.ftp_server = "stage.mozilla.org/firefox"
     uvc2.to = "/firefox/4.0rc2.tar.bz2"
     uvc2.addRelease("4.0", build_id="888",
                     locales=["af", "de", "en-US"],
                     patch_types=["partial", "complete"],
                     from_path="/firefox/4.0rc1.tar.bz2")
     uvc2.addRelease("4.0b12", build_id="777",
                     locales=["de", "ja"],
                     patch_types=["complete"],
                     from_path=None)
     chunkedConfig = self.uvc.getChunk(chunks=3, thisChunk=1)
     self.assertEquals(chunkedConfig, uvc2)
開發者ID:EkkiD,項目名稱:build-tools,代碼行數:21,代碼來源:test_release_updates_verify.py

示例4: testRead

# 需要導入模塊: from release.updates.verify import UpdateVerifyConfig [as 別名]
# 或者: from release.updates.verify.UpdateVerifyConfig import ftp_server [as 別名]
    def testRead(self):
        uvc2 = UpdateVerifyConfig()
        uvc2.product = "Firefox"
        uvc2.platform = "Linux_x86-gcc3"
        uvc2.channel = "betatest"
        uvc2.aus_server = "https://aus2.mozilla.org"
        uvc2.ftp_server = "stage.mozilla.org/firefox"
        uvc2.to = "/firefox/4.0rc2.tar.bz2"
        uvc2.addRelease("4.0", build_id="888",
                        locales=["af", "de", "en-US", "ja", "zh-TW"],
                        patch_types=["partial", "complete"],
                        from_path="/firefox/4.0rc1.tar.bz2")
        uvc2.addRelease("4.0b12", build_id="777",
                        locales=["af", "en-US"],
                        from_path="/firefox/4.0b12.tar.bz2")
        uvc2.addRelease("4.0b12", build_id="777",
                        locales=["de", "ja", "zh-TW"])
        uvc2.addRelease("3.7a1", build_id="666", locales=["en-US"])

        self.uvc.read(self.config)
        self.assertEquals(self.uvc, uvc2)
開發者ID:EkkiD,項目名稱:build-tools,代碼行數:23,代碼來源:test_release_updates_verify.py

示例5: testGetChunkWithPathWithSpaces

# 需要導入模塊: from release.updates.verify import UpdateVerifyConfig [as 別名]
# 或者: from release.updates.verify.UpdateVerifyConfig import ftp_server [as 別名]
 def testGetChunkWithPathWithSpaces(self):
     self.uvc.product = "Firefox"
     self.uvc.platform = "Linux_x86-gcc3"
     self.uvc.channel = "betatest"
     self.uvc.aus_server = "https://aus2.mozilla.org"
     self.uvc.ftp_server = "stage.mozilla.org/firefox"
     self.uvc.to = "/firefox/Firefox 4.0 Beta 2.exe"
     self.uvc.addRelease("4.0b1", build_id="222",
                         locales=["en-US", "ja", "zh-TW"],
                         patch_types=["complete"],
                         from_path="/firefox/Firefox 4.0 Beta 1.exe")
     uvc2 = UpdateVerifyConfig()
     uvc2.product = "Firefox"
     uvc2.platform = "Linux_x86-gcc3"
     uvc2.channel = "betatest"
     uvc2.aus_server = "https://aus2.mozilla.org"
     uvc2.ftp_server = "stage.mozilla.org/firefox"
     uvc2.to = "/firefox/Firefox 4.0 Beta 2.exe"
     uvc2.addRelease("4.0b1", build_id="222",
                     locales=["en-US", "ja"],
                     patch_types=["complete"],
                     from_path="/firefox/Firefox 4.0 Beta 1.exe")
     chunkedConfig = self.uvc.getChunk(chunks=2, thisChunk=1)
     self.assertEquals(chunkedConfig, uvc2)
開發者ID:EkkiD,項目名稱:build-tools,代碼行數:26,代碼來源:test_release_updates_verify.py


注:本文中的release.updates.verify.UpdateVerifyConfig.ftp_server方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。