Assert that created archive exists in archive test.

This commit is contained in:
Bastian Kleineidam 2010-03-06 19:21:20 +01:00
parent 960d15cd76
commit 22dd316db9
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ class ArchiveTest (unittest.TestCase):
os.chdir(tmpdir)
try:
patoolib._handle_archive(archive, 'create', topack, **kwargs)
self.assertTrue(os.path.isfile(archive))
# not all programs can test what they create
if self.program == 'compress':
program = 'gzip'