示例#1
0
 def test_unpack_tgz(self, data):
     """
     Test unpacking a *.tgz, and setting execute permissions
     """
     test_file = data.packages.join("test_tar.tgz")
     untar_file(test_file, self.tempdir)
     self.confirm_files()
示例#2
0
 def test_unpack_tgz(self, data):
     """
     Test unpacking a *.tgz, and setting execute permissions
     """
     test_file = data.packages.join("test_tar.tgz")
     untar_file(test_file, self.tempdir)
     self.confirm_files()
示例#3
0
 def test_unpack_tgz(self, data):
     """
     Test unpacking a *.tgz, and setting execute permissions
     """
     test_file = data.packages.join("test_tar.tgz")
     untar_file(test_file, self.tempdir)
     self.confirm_files()
     # Check the timestamp of an extracted file
     file_txt_path = os.path.join(self.tempdir, 'file.txt')
     mtime = time.gmtime(os.stat(file_txt_path).st_mtime)
     assert mtime[0:6] == (2013, 8, 16, 5, 13, 37), mtime
示例#4
0
文件: test_utils.py 项目: Larry7/pip
 def test_unpack_tgz(self, data):
     """
     Test unpacking a *.tgz, and setting execute permissions
     """
     test_file = data.packages.join("test_tar.tgz")
     untar_file(test_file, self.tempdir)
     self.confirm_files()
     # Check the timestamp of an extracted file
     file_txt_path = os.path.join(self.tempdir, 'file.txt')
     mtime = time.gmtime(os.stat(file_txt_path).st_mtime)
     assert mtime[0:6] == (2013, 8, 16, 5, 13, 37), mtime