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()))
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()])