def test_URLToFileName10(self): #Check for false positive url = "http://www.oioioi.net/projects/pymol/files/pymol/1.4.1/pymol-v1.4.1.tar.bz2/download" filename = utilityFunctions.URLToFilename(url) self.assertEquals( filename, "download", "Wrong filename '" + filename + "' returned from function")
def test_URLToFileName03(self): url = "http://www.sourceforge.net/projects/pymol/files/pymol/1.4.1/pymol-v1.4.1.tar.bz2/download" filename = utilityFunctions.URLToFilename(url) self.assertEquals( filename, "pymol-v1.4.1.tar.bz2", "Wrong filename '" + filename + "' returned from function")