예제 #1
0
 def assert_archive_files(self, expected_archive_files, snapshot, snapshot_archive_root):
   with open_tar(_snapshot_path(snapshot, snapshot_archive_root), errorlevel=1) as tar:
     self.assertEqual(sorted(expected_archive_files), sorted(tar.getnames()))
예제 #2
0
 def assert_archive_files(self, expected_archive_files, snapshot,
                          snapshot_archive_root):
     with open_tar(_snapshot_path(snapshot, snapshot_archive_root),
                   errorlevel=1) as tar:
         self.assertEqual(sorted(expected_archive_files),
                          sorted(tar.getnames()))
예제 #3
0
 def assert_archive_files(self, expected_archive_files, snapshot, step_context):
   with open_tar(_snapshot_path(snapshot, step_context.snapshot_archive_root), errorlevel=1) as tar:
     self.assertEqual(expected_archive_files,
                      [tar_info.path for tar_info in tar.getmembers()])