Assert that created archive exists in archive test.
This commit is contained in:
parent
960d15cd76
commit
22dd316db9
|
@ -90,6 +90,7 @@ class ArchiveTest (unittest.TestCase):
|
||||||
os.chdir(tmpdir)
|
os.chdir(tmpdir)
|
||||||
try:
|
try:
|
||||||
patoolib._handle_archive(archive, 'create', topack, **kwargs)
|
patoolib._handle_archive(archive, 'create', topack, **kwargs)
|
||||||
|
self.assertTrue(os.path.isfile(archive))
|
||||||
# not all programs can test what they create
|
# not all programs can test what they create
|
||||||
if self.program == 'compress':
|
if self.program == 'compress':
|
||||||
program = 'gzip'
|
program = 'gzip'
|
||||||
|
|
Loading…
Reference in New Issue