Esempio n. 1
0
 def test_download_notexisting_url(self):
     """
         Test downloading a not existing file from an URL
     """
     testurl = "https://raw.githubusercontent.com/timofurrer/testfiles/master/doesnotexist"
     expect(utils.download_file(testurl)).to.be.none
Esempio n. 2
0
 def test_download_notexisting_url(self):
     """
         Test downloading a not existing file from an URL
     """
     testurl = "https://raw.githubusercontent.com/timofurrer/testfiles/master/doesnotexist"
     expect(utils.download_file(testurl)).to.be.none
Esempio n. 3
0
 def test_download_existing_url(self):
     """
         Test downloading an existing file from an URL
     """
     testurl = "https://raw.githubusercontent.com/timofurrer/testfiles/master/awesome"
     expect(utils.download_file(testurl).strip()).to.be.equal("Awesome!")
Esempio n. 4
0
 def test_download_existing_url(self):
     """
         Test downloading an existing file from an URL
     """
     testurl = "https://raw.githubusercontent.com/timofurrer/testfiles/master/awesome"
     expect(utils.download_file(testurl).strip()).to.be.equal("Awesome!")