コード例 #1
0
 def test_remote(self):
     expected = "http://foo.bar/pub/bbb/candidates/1.0-candidates/build5/"
     got = makeCandidatesDir("bbb",
                             "1.0",
                             5,
                             protocol="http",
                             server="foo.bar")
     self.assertEqual(expected, got)
コード例 #2
0
 def test_remote(self):
     expected = "http://foo.bar/pub/bbb/candidates/1.0-candidates/build5/"
     got = makeCandidatesDir('bbb',
                             '1.0',
                             5,
                             protocol="http",
                             server='foo.bar')
     self.assertEqual(expected, got)
コード例 #3
0
 def test_base(self):
     expected = "/pub/bbb/candidates/1.0-candidates/build2/"
     got = makeCandidatesDir('bbb', '1.0', 2)
     self.assertEqual(expected, got)
コード例 #4
0
 def test_ftp_root(self):
     expected = "pub/bbb/candidates/1.0-candidates/build5/"
     got = makeCandidatesDir('bbb', '1.0', 5, ftp_root="pub/")
     self.assertEqual(expected, got)
コード例 #5
0
 def test_fennec(self):
     expected = "/pub/mobile/candidates/15.1-candidates/build3/"
     got = makeCandidatesDir('fennec', '15.1', 3)
     self.assertEqual(expected, got)
コード例 #6
0
 def test_base(self):
     expected = "/pub/bbb/candidates/1.0-candidates/build2/"
     got = makeCandidatesDir('bbb', '1.0', 2)
     self.assertEquals(expected, got)
コード例 #7
0
 def test_ftp_root(self):
     expected = "pub/bbb/candidates/1.0-candidates/build5/"
     got = makeCandidatesDir('bbb', '1.0', 5, ftp_root="pub/")
     self.assertEquals(expected, got)
コード例 #8
0
 def test_remote(self):
     expected = "http://foo.bar/pub/bbb/candidates/1.0-candidates/build5/"
     got = makeCandidatesDir('bbb', '1.0', 5, protocol="http",
                             server='foo.bar')
     self.assertEquals(expected, got)
コード例 #9
0
 def test_fennec(self):
     expected = "/pub/mobile/candidates/15.1-candidates/build3/"
     got = makeCandidatesDir('fennec', '15.1', 3)
     self.assertEquals(expected, got)