def testgetMetricPath(self):
        metric = Metric('prefix.cpu.TotalIdle',
                        0,
                        host='com.example.www')

        actual_value = metric.getMetricPath()
        expected_value = 'TotalIdle'

        message = 'Actual %s, expected %s' % (actual_value, expected_value)
        self.assertEqual(actual_value, expected_value, message)

    # Test hostname of none
dataset/ETHPy150Open Yelp/fullerite/src/diamond/tests/testmetric.py/TestMetric.testgetMetricPath/original