Exemplo n.º 1
0
    def testOptions(self):
        a = DummyArchive()
        a.wantDownload(True)
        a.wantUpload(True)

        self.assertFalse(a.canDownloadLocal())
        self.assertFalse(a.canUploadLocal())
        self.assertFalse(a.canDownloadJenkins())
        self.assertFalse(a.canUploadJenkins())
Exemplo n.º 2
0
    def testOptions(self):
        a = DummyArchive()
        a.wantDownload(True)
        a.wantUpload(True)

        self.assertFalse(a.canDownloadLocal())
        self.assertFalse(a.canUploadLocal())
        self.assertFalse(a.canDownloadJenkins())
        self.assertFalse(a.canUploadJenkins())
Exemplo n.º 3
0
 def testUploadLocal(self):
     run(DummyArchive().uploadPackage(DummyStep(), b'\x00' * 20, "unused",
                                      "unused"))
     run(DummyArchive().uploadLocalLiveBuildId(DummyStep(), b'\x00' * 20,
                                               b'\x00' * 20))
Exemplo n.º 4
0
 def testUploadJenkins(self):
     ret = DummyArchive().upload(b'\x00' * 20, "unused", "unused")
     self.assertEqual(ret, "")
     ret = DummyArchive().uploadJenkinsLiveBuildId(None, "unused", "unused")
     self.assertEqual(ret, "")
Exemplo n.º 5
0
 def testDownloadLocal(self):
     run(DummyArchive().downloadPackage(DummyStep(), b'\x00' * 20, "unused",
                                        "unused"))
     self.assertEqual(
         run(DummyArchive().downloadLocalLiveBuildId(
             DummyStep(), b'\x00' * 20)), None)
Exemplo n.º 6
0
 def testDownloadJenkins(self):
     ret = DummyArchive().download(b'\x00' * 20, "unused", "unused")
     self.assertEqual(ret, "")
Exemplo n.º 7
0
 def testUploadLocal(self):
     DummyArchive().uploadPackage(b'\x00' * 20, "unused", "unused", 0)