'Test backup has dependent backups.
Test the query of has_dependent_backups in backup object is correct.'

def test_backup_has_dependent_backups(self):

    vol_size = 1
    vol_id = self._create_volume_db_entry(size=vol_size)
    backup = self._create_backup_db_entry(volume_id=vol_id)
    self.assertFalse(backup.has_dependent_backups)
