def test_unpack(self): """ Tests Install_ICE.unpack_packages """ print("") print("----------------------------------------------------------------------") print(" Testing package downloads...") opts = Install_ICE.parse_args(['-u', 'HDFJava']) arch_type = platform.machine() os_type = platform.system() pkgs = Install_ICE.download_packages(opts, os_type, arch_type) Install_ICE.unpack_packages(opts, pkgs) n = len(glob.glob("HDFView*")) print("Number of files found = " + str(n)) self.assertNotEqual(0, n)
def test_unpack(self): """ Tests Install_ICE.unpack_packages """ print("") print( "----------------------------------------------------------------------" ) print(" Testing package downloads...") opts = Install_ICE.parse_args(['-u', 'HDFJava']) arch_type = platform.machine() os_type = platform.system() pkgs = Install_ICE.download_packages(opts, os_type, arch_type) Install_ICE.unpack_packages(opts, pkgs) n = len(glob.glob("HDFView*")) print("Number of files found = " + str(n)) self.assertNotEqual(0, n)