'Test normal backup record export.'

def test_export_record(self):

    vol_size = 1
    vol_id = self._create_volume_db_entry(status='available', size=vol_size)
    backup = self._create_backup_db_entry(status=fields.BackupStatus.AVAILABLE, volume_id=vol_id)
    export = self.backup_mgr.export_record(self.ctxt, backup)
    self.assertEqual(CONF.backup_driver, export['backup_service'])
    self.assertIn('backup_url', export)
