From 22dd316db99fd2e3729ed8e737b27d403b2dad5b Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 6 Mar 2010 19:21:20 +0100 Subject: [PATCH] Assert that created archive exists in archive test. --- tests/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/__init__.py b/tests/__init__.py index 1459e5e..4aa4008 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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'