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
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
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!")
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!")