Removed redundant ArchiveTest.test_extract_method() test.
The extract() function has the same code as used in the test method for Archive.extract().
This commit is contained in:
parent
0509148c24
commit
421c4cd2ee
|
@ -5,7 +5,7 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from django.utils.archive import Archive, extract
|
from django.utils.archive import extract
|
||||||
|
|
||||||
TEST_DIR = os.path.join(os.path.dirname(__file__), 'archives')
|
TEST_DIR = os.path.join(os.path.dirname(__file__), 'archives')
|
||||||
|
|
||||||
|
@ -28,11 +28,6 @@ class ArchiveTester:
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
os.chdir(self.old_cwd)
|
os.chdir(self.old_cwd)
|
||||||
|
|
||||||
def test_extract_method(self):
|
|
||||||
with Archive(self.archive) as archive:
|
|
||||||
archive.extract(self.tmpdir)
|
|
||||||
self.check_files(self.tmpdir)
|
|
||||||
|
|
||||||
def test_extract_function(self):
|
def test_extract_function(self):
|
||||||
extract(self.archive_path, self.tmpdir)
|
extract(self.archive_path, self.tmpdir)
|
||||||
self.check_files(self.tmpdir)
|
self.check_files(self.tmpdir)
|
||||||
|
|
Loading…
Reference in New Issue