Exemple #1
0
 def test_execute_backup_fs_no_incremental_and_backup_level_raise(self):
     backup_opt = BackupOpt1()
     backup_opt.mode = 'default'
     backup_opt.no_incremental = True
     backup_opt.max_level = None
     backup_opt.always_level = None
     job = jobs.BackupJob(backup_opt, backup_opt.storage)
     self.assertRaises(Exception, job.execute)
Exemple #2
0
 def test_execute_raise(self):
     backup_opt = BackupOpt1()
     backup_opt.no_incremental = False
     backup_opt.mode = None
     job = jobs.BackupJob(backup_opt, backup_opt.storage)
     self.assertRaises(ValueError, job.execute)