mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
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 unittest
|
||||
|
||||
from django.utils.archive import Archive, extract
|
||||
from django.utils.archive import extract
|
||||
|
||||
TEST_DIR = os.path.join(os.path.dirname(__file__), 'archives')
|
||||
|
||||
@ -28,11 +28,6 @@ class ArchiveTester:
|
||||
def tearDown(self):
|
||||
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):
|
||||
extract(self.archive_path, self.tmpdir)
|
||||
self.check_files(self.tmpdir)
|
||||
|
Loading…
Reference in New Issue
Block a user