diff options
Diffstat (limited to 'xnt/tests/taskcompressiontests.py')
-rw-r--r-- | xnt/tests/taskcompressiontests.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xnt/tests/taskcompressiontests.py b/xnt/tests/taskcompressiontests.py index 90ba081..625a2b5 100644 --- a/xnt/tests/taskcompressiontests.py +++ b/xnt/tests/taskcompressiontests.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +"""Test `xnt.tasks.zip`""" # Xnt -- A Wrapper Build Tool # Copyright (C) 2012 Kenny Ballou @@ -16,25 +17,24 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import sys import os -import shutil import xnt.tasks +import xnt.tests import unittest +#pylint: disable-msg=C0103 +class TaskCompressionTests(unittest.TestCase): #pylint: disable-msg=R0904 + """Test Cases for Compression""" + def setUp(self): #pylint: disable-msg=R0201 + """Test Case Setup""" + xnt.tests.set_up() -class TaskCompressionTests(unittest.TestCase): - def setUp(self): - os.mkdir("temp") - os.mkdir("temp/testfolder1") - for i in range(1, 5): - with open("temp/testfile" + str(i), "w") as f: - f.write("this is a test file") - - def tearDown(self): - shutil.rmtree("temp") + def tearDown(self): #pylint: disable-msg=R0201 + """Test Case Teardown""" + xnt.tests.tear_down() def test_zip(self): + """Test zip method""" xnt.tasks.zip("temp/testfolder1", "temp/myzip.zip") self.assertTrue(os.path.exists("temp/myzip.zip")) |