Added a test for the zip tool.
This commit is contained in:
parent
4752f0d735
commit
5adb3b2eab
3 changed files with 10 additions and 0 deletions
BIN
golden-files/input/hi.zip
Normal file
BIN
golden-files/input/hi.zip
Normal file
Binary file not shown.
6
golden-files/results/unzip-hi_zip
Normal file
6
golden-files/results/unzip-hi_zip
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Archive: ./input/hi.zip
|
||||
Length Date Time Name
|
||||
--------- ---------- ----- ----
|
||||
27 2016-02-09 21:50 hi.py
|
||||
--------- -------
|
||||
27 1 file
|
||||
|
|
@ -140,6 +140,10 @@ class ToolsTestCase(unittest.TestCase):
|
|||
self._sub_tests([(tools.splint, "hello.c", 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):
|
||||
self._sub_tests([
|
||||
(tools.html_syntax, "hi.html", tools.Status.problem)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue