From 6f5427fb507cc34b9b20266a5b4f43dd066c30c7 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 10 Mar 2010 20:23:19 +0100 Subject: [PATCH] Use correct program name when checking star(1) program. --- tests/test_archives.py | 12 ++++++------ tests/test_foo_archives.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/test_archives.py b/tests/test_archives.py index c8098cb..dfe0ea4 100644 --- a/tests/test_archives.py +++ b/tests/test_archives.py @@ -60,35 +60,35 @@ class TestArchives (ArchiveTest): self.program = 'star' self.archive_commands('t.tar') - @needs_codec('tar', 'gzip') + @needs_codec('star', 'gzip') def test_star_gz (self): self.program = 'star' self.archive_commands('t.tar.gz') self.archive_commands('t.tgz') - @needs_codec('tar', 'compress') + @needs_codec('star', 'compress') def test_star_z (self): self.program = 'star' self.archive_commands('t.tar.Z') self.archive_commands('t.taz') - @needs_codec('tar', 'bzip2') + @needs_codec('star', 'bzip2') def test_star_bz2 (self): self.program = 'star' self.archive_commands('t.tar.bz2') self.archive_commands('t.tbz2') - @needs_codec('tar', 'lzma') + @needs_codec('star', 'lzma') def test_star_lzma (self): self.program = 'star' self.archive_commands('t.tar.lzma') - @needs_codec('tar', 'lzip') + @needs_codec('star', 'lzip') def test_star_lzip (self): self.program = 'star' self.archive_commands('t.tar.lz') - @needs_codec('tar', 'xz') + @needs_codec('star', 'xz') def test_star_xz (self): self.program = 'star' self.archive_commands('t.tar.xz') diff --git a/tests/test_foo_archives.py b/tests/test_foo_archives.py index c07b91b..9dbd5af 100644 --- a/tests/test_foo_archives.py +++ b/tests/test_foo_archives.py @@ -70,21 +70,21 @@ class TestArchives (ArchiveTest): self.archive_commands('t.tar.foo', format="tar") @needs_program('file') - @needs_codec('tar', 'gzip') + @needs_codec('star', 'gzip') def test_star_gz (self): self.program = 'star' self.archive_commands('t.tar.gz.foo', format="tar", encoding="gzip") self.archive_commands('t.tgz.foo', format="tar", encoding="gzip") @needs_program('file') - @needs_codec('tar', 'compress') + @needs_codec('star', 'compress') def test_star_z (self): self.program = 'star' self.archive_commands('t.tar.Z.foo', format="tar", encoding="compress") self.archive_commands('t.taz.foo', format="tar", encoding="compress") @needs_program('file') - @needs_codec('tar', 'bzip2') + @needs_codec('star', 'bzip2') def test_star_bz2 (self): self.program = 'star' self.archive_commands('t.tar.bz2.foo', format="tar", encoding="bzip2") @@ -92,19 +92,19 @@ class TestArchives (ArchiveTest): # file(1) does not recognize .lzma files #@needs_program('file') - #@needs_codec('tar', 'lzma') + #@needs_codec('star', 'lzma') #def test_star_lzma (self): # self.program = 'star' # self.archive_commands('t.tar.lzma.foo', format="tar", encoding="lzma") @needs_program('file') - @needs_codec('tar', 'lzip') + @needs_codec('star', 'lzip') def test_star_lzip (self): self.program = 'star' self.archive_commands('t.tar.lz.foo', format="tar", encoding="lzip") @needs_program('file') - @needs_codec('tar', 'xz') + @needs_codec('star', 'xz') def test_star_xz (self): self.program = 'star' self.archive_commands('t.tar.xz.foo', format="tar", encoding="xz")