From 451f18a625270ad2806fdc153b5ee502a43a0ff6 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 24 May 2012 23:26:26 +0200 Subject: [PATCH] Fix tests. --- tests/data/t.arj | Bin 123 -> 122 bytes tests/data/t.arj.foo | Bin 123 -> 122 bytes tests/data/t.cab.foo | Bin 79 -> 78 bytes tests/data/t.taz | Bin 284 -> 149 bytes tests/data/t.taz.foo | Bin 284 -> 149 bytes tests/data/t.txt.xz.foo | Bin 0 -> 60 bytes tests/data/t.xz.foo | Bin 60 -> 0 bytes tests/test_foo_archives.py | 24 ++++++++++++------------ tests/test_mime.py | 16 ++++++++-------- 9 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 tests/data/t.txt.xz.foo delete mode 100644 tests/data/t.xz.foo diff --git a/tests/data/t.arj b/tests/data/t.arj index 930025314eb106cc166f8b2e17b8ababa880594b..fc99a5c4558e7e34ff1f972651c261d1d442a54e 100644 GIT binary patch literal 122 zcmYdzrOBYg&B!Fcz|_FFY@a^}Ghl!cy~Ls{1_mZ!mo^55gjePadO$5eRg6(4b>1Kb u2zP8yF=Ap^APCVdJZ+!<+o=%4O7u(gN-9bi7%nOuy2`*{VwCWTfdK$Pe;C>T literal 123 zcmYdzrOBYg&B!Fcz_cVZp}`x388ASJUSd%e1H)3Kmm3%u5?+}z=mE6=RfR^G)Oj-l w86a$^*>;hMVSyk-_sQ4>@BKgw;+5!^=#^BIFfa&csN7&+Ffrmvc*Vc~0I(<+*8l(j diff --git a/tests/data/t.arj.foo b/tests/data/t.arj.foo index 930025314eb106cc166f8b2e17b8ababa880594b..fc99a5c4558e7e34ff1f972651c261d1d442a54e 100644 GIT binary patch literal 122 zcmYdzrOBYg&B!Fcz|_FFY@a^}Ghl!cy~Ls{1_mZ!mo^55gjePadO$5eRg6(4b>1Kb u2zP8yF=Ap^APCVdJZ+!<+o=%4O7u(gN-9bi7%nOuy2`*{VwCWTfdK$Pe;C>T literal 123 zcmYdzrOBYg&B!Fcz_cVZp}`x388ASJUSd%e1H)3Kmm3%u5?+}z=mE6=RfR^G)Oj-l w86a$^*>;hMVSyk-_sQ4>@BKgw;+5!^=#^BIFfa&csN7&+Ffrmvc*Vc~0I(<+*8l(j diff --git a/tests/data/t.cab.foo b/tests/data/t.cab.foo index f9a1bbf6cb221486613496b968ca760f4c755549..a24a1fd5964308de14a83719ce888fd7cea79ce4 100644 GIT binary patch delta 31 icmebG59N#0UUZ(*%tG delta 32 kcmebC=kyJBc4Ghn|B0N+jLZ{t#ko0+%o&)0(8P!f09(QYr~m)} diff --git a/tests/data/t.taz b/tests/data/t.taz index 5cf39f0f876df76b1383c2605d7142478d4f4e06..63a07011c041366094e705da6333796c0563a988 100644 GIT binary patch literal 149 zcmb2|=3qE6b)P>2^V^G#Tug>Mtq*0EsuxV!a(P~QfocbL@1u`%8A}ycD2NFD&!6nd zRQVxk!n=}dZn4X3&qy1d-Z}NnJJ%~)swSI!>sKqXIkLsy^V;QaTW;F!uipMY(C~=X yxr<+q2Nme9|Mk84|Fqh7_gC#!c{}UXtMkA0|Gi~lKn8ZDjI(~^HZf>0FaQA88b$^H literal 284 zcmV+%0ptE3ose{102oNHpuvL(6DnNDu%SbQFe1XZQ3D15i7_Zz#HjJ2#E%jI#E3Ct z#tj-XWT>QZF$N49GHw6>QRAV_n>cgo1W;!VoiK7hfB-Ni3>!OX-0VD9^k~whP@_tn zO0}w0hXLuhpo53b)vsU)ezZYjW5kRVJ;Fe17NkTOB1xJ=DT5^3wJ~7A1z|C)-@iS7 z1|8ZIsnV&1pZ;CUxUplaG~hm-Ou4e<%a}83-pskP=g*)+iylq7wCU5RQ>$Lhy0z=q zuw%=fO}n=3+qiS<-p#wW@87_K3m;Crxbfr2lPh1&yt(t|(4$MAPQAMI>)5kv-_E_e i_wV4tiyu$Ey!rF!)2m<4zP2^V^G#Tug>Mtq*0EsuxV!a(P~QfocbL@1u`%8A}ycD2NFD&!6nd zRQVxk!n=}dZn4X3&qy1d-Z}NnJJ%~)swSI!>sKqXIkLsy^V;QaTW;F!uipMY(C~=X yxr<+q2Nme9|Mk84|Fqh7_gC#!c{}UXtMkA0|Gi~lKn8ZDjI(~^HZf>0FaQA88b$^H literal 284 zcmV+%0ptE3ose{102oNHpuvL(6DnNDu%SbQFe1XZQ3D15i7_Zz#HjJ2#E%jI#E3Ct z#tj-XWT>QZF$N49GHw6>QRAV_n>cgo1W;!VoiK7hfB-Ni3>!OX-0VD9^k~whP@_tn zO0}w0hXLuhpo53b)vsU)ezZYjW5kRVJ;Fe17NkTOB1xJ=DT5^3wJ~7A1z|C)-@iS7 z1|8ZIsnV&1pZ;CUxUplaG~hm-Ou4e<%a}83-pskP=g*)+iylq7wCU5RQ>$Lhy0z=q zuw%=fO}n=3+qiS<-p#wW@87_K3m;Crxbfr2lPh1&yt(t|(4$MAPQAMI>)5kv-_E_e i_wV4tiyu$Ey!rF!)2m<4zPq^21Q0O1_p)_{ill=85m8Bfb1tl`OEuaJ0~(QN-^EhTUsZ- O?Q<<7P@I7!G711FUlE`H literal 0 HcmV?d00001 diff --git a/tests/data/t.xz.foo b/tests/data/t.xz.foo deleted file mode 100644 index 03545d7dee867c1e9f6c3875db87de09c56a19a3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmexsUKJ6=z`*kC+7>q^21Q0O1_p)_{ill=8JJ9rxEL5h!i?|SPEj#rV3cO&*54^0 PzwL7^BTx+kOJo!P`}hxE diff --git a/tests/test_foo_archives.py b/tests/test_foo_archives.py index 441b3f2..a30c8d0 100644 --- a/tests/test_foo_archives.py +++ b/tests/test_foo_archives.py @@ -182,36 +182,36 @@ class TestArchives (ArchiveTest): @needs_program('bzip2') def test_bzip2 (self): self.program = 'bzip2' - self.archive_extract('t.bz2.foo') - self.archive_test('t.bz2.foo') - self.archive_create('t.bz2.foo', format="bzip2", singlefile=True) + self.archive_extract('t.txt.bz2.foo') + self.archive_test('t.txt.bz2.foo') + self.archive_create('t.txt.bz2.foo', format="bzip2", singlefile=True) @needs_program('file') def test_py_bz2 (self): self.program = 'py_bz2' - self.archive_extract('t.bz2.foo') - self.archive_create('t.bz2.foo', format="bzip2", singlefile=True) + self.archive_extract('t.txt.bz2.foo') + self.archive_create('t.txt.bz2.foo', format="bzip2", singlefile=True) @needs_program('file') @needs_program('pbzip2') def test_pbzip2 (self): self.program = 'pbzip2' - self.archive_extract('t.bz2.foo') - self.archive_test('t.bz2.foo') - self.archive_create('t.bz2.foo', format="bzip2", singlefile=True) + self.archive_extract('t.txt.bz2.foo') + self.archive_test('t.txt.bz2.foo') + self.archive_create('t.txt.bz2.foo', format="bzip2", singlefile=True) @needs_program('file') @needs_program('lbzip2') def test_lbzip2 (self): self.program = 'lbzip2' - self.archive_extract('t.bz2.foo') - self.archive_test('t.bz2.foo') - self.archive_create('t.bz2.foo', format="bzip2", singlefile=True) + self.archive_extract('t.txt.bz2.foo') + self.archive_test('t.txt.bz2.foo') + self.archive_create('t.txt.bz2.foo', format="bzip2", singlefile=True) @needs_program('file') def test_py_echo (self): self.program = 'py_echo' - self.archive_list('t.bz2.foo') + self.archive_list('t.txt.bz2.foo') self.archive_list('t.txt.Z.foo') # file(1) does not recognize .lzma files #self.archive_list('t.lzma.foo') diff --git a/tests/test_mime.py b/tests/test_mime.py index 4b665ee..146536a 100644 --- a/tests/test_mime.py +++ b/tests/test_mime.py @@ -49,16 +49,16 @@ class TestMime (unittest.TestCase): self.mime_test_file("t.7z.foo", "application/x-7z-compressed", None) self.mime_test_file("t.arj", "application/x-arj", None) self.mime_test_file("t.arj.foo", "application/x-arj", None) - self.mime_test_file("t .bz2", "application/x-bzip2", None) - self.mime_test_file("t.bz2.foo", "application/x-bzip2", None) + self.mime_test_file("t.txt.bz2", "application/x-bzip2", None) + self.mime_test_file("t.txt.bz2.foo", "application/x-bzip2", None) self.mime_test_file("t.cab", "application/vnd.ms-cab-compressed", None) self.mime_test_file("t.cab.foo", "application/vnd.ms-cab-compressed", None) self.mime_test_file("t.cpio", "application/x-cpio", None) self.mime_test_file("t.cpio.foo", "application/x-cpio", None) self.mime_test_file("t.deb", "application/x-debian-package", None) self.mime_test_file("t.deb.foo", "application/x-debian-package", None) - self.mime_test_file("t.gz", "application/x-gzip", None) - self.mime_test_file("t.gz.foo", "application/x-gzip", None) + self.mime_test_file("t.txt.gz", "application/x-gzip", None) + self.mime_test_file("t.txt.gz.foo", "application/x-gzip", None) self.mime_test_file("t.jar", "application/zip", None) self.mime_test_file("t.jar.foo", "application/zip", None) # file(1) does not recognize .lzma files @@ -87,10 +87,10 @@ class TestMime (unittest.TestCase): #self.mime_test_file("t.tar.lzma.foo", "application/x-tar", "lzma") self.mime_test_file("t.txt.gz", "application/x-gzip", None) self.mime_test_file("t.txt.gz.foo", "application/x-gzip", None) - self.mime_test_file("t .xz", "application/x-xz", None) - self.mime_test_file("t.xz.foo", "application/x-xz", None) - self.mime_test_file("t.Z", "application/x-compress", None) - self.mime_test_file("t.Z.foo", "application/x-compress", None) + self.mime_test_file("t.txt.xz", "application/x-xz", None) + self.mime_test_file("t.txt.xz.foo", "application/x-xz", None) + self.mime_test_file("t.txt.Z", "application/x-compress", None) + self.mime_test_file("t.txt.Z.foo", "application/x-compress", None) self.mime_test_file("t.jar", "application/zip", None) self.mime_test_file("t.jar.foo", "application/zip", None) self.mime_test_file("t.zip", "application/zip", None)