def _testGetUpdatedDescriptionExistingDescWithoutAvgDuration(self):
    """Test _GetUpdatedDescription() with desc lacking avg durations text."""
    avg_duration_text = maint.models.PackageInfo.AVG_DURATION_TEXT
    old_desc = 'Foo Bar'
    duration_dict = {'duration_count': 6523, 'duration_seconds_avg': 117}
    expected_desc = 'Foo Bar\n\n%s' % avg_duration_text % (6523, 117)

    new_desc = self.c._GetUpdatedDescription(duration_dict, old_desc)
    self.assertEqual(new_desc, expected_desc)
dataset/ETHPy150Open google/simian/src/tests/simian/mac/cron/maintenance_test.py/UpdateAverageInstallDurationsTest._testGetUpdatedDescriptionExistingDescWithoutAvgDuration/original