'Test creating a backup with a backup with a bad status.'

def test_create_backup_with_bad_backup_status(self):

    vol_id = self._create_volume_db_entry(size=1)
    backup = self._create_backup_db_entry(status=fields.BackupStatus.AVAILABLE, volume_id=vol_id)
    self.assertRaises(exception.InvalidBackup, self.backup_mgr.create_backup, self.ctxt, backup)
