9"""Tests for zip_utils."""
27 fw.mkdir(
'anotherdir', 0o666)
28 fw.mkdir(
'dir3', 0o600)
30 fw.write(
'a.txt', 0o777)
31 fw.write(
'b.txt', 0o751)
32 fw.write(
'c.txt', 0o640)
33 fw.write(os.path.join(
'subdir',
'd.txt'), 0o640)
47 fw.write(os.path.join(
'.git',
'index'))
50 fw.write(
'leftover.pyc')
54 zip_utils.zip(
'input',
'test.zip', to_skip=[
'.git',
'.DS*',
'*.pyc'])
59 fw.remove(os.path.join(
'.git',
'index'))
61 fw.remove(
'.DS_STORE')
62 fw.remove(
'leftover.pyc')
69 with self.assertRaises(IOError):
73if __name__ ==
'__main__':
def test_nonexistent_dir(self)
def compare_trees(test, a, b)
def zip(target_dir, zip_file, to_skip=None)
def unzip(zip_file, target_dir)