def testgetPathPrefixCustom(self):
        metric = Metric('custom.path.prefix.com.example.www.cpu.total.idle',
                        0,
                        host='com.example.www')

        actual_value = metric.getPathPrefix()
        expected_value = 'custom.path.prefix'

        message = (actual_value, expected_value) % 'Actual %s, expected %s'
        self.assertEqual(actual_value, expected_value, message)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/test/testmetric.py/TestMetric.testgetPathPrefixCustom/swapped operands of `%`