def test_extract_dir_for_tar(self): join = os.path.join tar_and_gzip(dir=join(self.tmp_dir, 'a'), out_path=join(self.tmp_dir, 'not_a.tar.gz'), prefix='b') assert_equal(extract_dir_for_tar(join(self.tmp_dir, 'not_a.tar.gz')), 'b')
def test_extract_dir_for_tar(self): join = os.path.join tar_and_gzip(dir=join(self.tmp_dir, "a"), out_path=join(self.tmp_dir, "not_a.tar.gz"), prefix="b") self.assertEqual(extract_dir_for_tar(join(self.tmp_dir, "not_a.tar.gz")), "b")