Added a test for the zip tool.

This commit is contained in:
Andrew Hamilton 2016-02-09 22:18:46 +00:00
parent 4752f0d735
commit 5adb3b2eab
3 changed files with 10 additions and 0 deletions

BIN
golden-files/input/hi.zip Normal file

Binary file not shown.

View file

@ -0,0 +1,6 @@
Archive: ./input/hi.zip
Length Date Time Name
--------- ---------- ----- ----
27 2016-02-09 21:50 hi.py
--------- -------
27 1 file

View file

@ -140,6 +140,10 @@ class ToolsTestCase(unittest.TestCase):
self._sub_tests([(tools.splint, "hello.c", tools.Status.ok), self._sub_tests([(tools.splint, "hello.c", tools.Status.ok),
(tools.splint, "hello.h", tools.Status.ok)]) (tools.splint, "hello.h", tools.Status.ok)])
def test_unzip(self):
self._sub_tests([
(tools.unzip, "hi.zip", tools.Status.normal)])
def test_html_syntax(self): def test_html_syntax(self):
self._sub_tests([ self._sub_tests([
(tools.html_syntax, "hi.html", tools.Status.problem)]) (tools.html_syntax, "hi.html", tools.Status.problem)])