From 3609b31b2973296d256791b08056e1adb775f717 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 4 Jun 2018 09:27:43 +1000 Subject: [PATCH] tools: Fixed broken test. - This was missed when changing from unzip to zipinfo. --- tests/golden-files/results/unzip-hi_zip | 6 ------ tests/golden-files/results/zipinfo-hi_zip | 4 ++++ tests/tools_test.py | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 tests/golden-files/results/unzip-hi_zip create mode 100644 tests/golden-files/results/zipinfo-hi_zip diff --git a/tests/golden-files/results/unzip-hi_zip b/tests/golden-files/results/unzip-hi_zip deleted file mode 100644 index 07af482..0000000 --- a/tests/golden-files/results/unzip-hi_zip +++ /dev/null @@ -1,6 +0,0 @@ -Archive: ./input/hi.zip - Length Date Time Name ---------- ---------- ----- ---- - 27 2016-02-09 21:50 hi.py ---------- ------- - 27 1 file \ No newline at end of file diff --git a/tests/golden-files/results/zipinfo-hi_zip b/tests/golden-files/results/zipinfo-hi_zip new file mode 100644 index 0000000..7679bcf --- /dev/null +++ b/tests/golden-files/results/zipinfo-hi_zip @@ -0,0 +1,4 @@ +Archive: ./input/hi.zip +Zip file size: 187 bytes, number of entries: 1 +-rw-rw-r-- 3.0 unx 27 tx stor 16-Feb-09 21:50 hi.py +1 file, 27 bytes uncompressed, 27 bytes compressed: 0.0% \ No newline at end of file diff --git a/tests/tools_test.py b/tests/tools_test.py index 5766403..e741816 100755 --- a/tests/tools_test.py +++ b/tests/tools_test.py @@ -182,8 +182,8 @@ class ToolsTestCase(unittest.TestCase): def test_readelf(self): self._test_tool(tools.readelf, [("Mcrt1.o", tools.Status.normal)]) - def test_unzip(self): - self._test_tool(tools.unzip, [("hi.zip", tools.Status.normal)]) + def test_zipinfo(self): + self._test_tool(tools.zipinfo, [("hi.zip", tools.Status.normal)]) def test_tar_gz(self): self._test_tool(tools.tar_gz, [("hi.tar.gz", tools.Status.normal),