def test_473(self, publish_mock):
        """
        No cpu value should ever be over 100
        """
        self.collector.config['interval'] = 60
        patch_open = patch('os.path.isdir', Mock(return_value=True))
        patch_open.start()

        CPUCollector.PROC = self.getFixturePath('473_1')
        self.collector.collect()

        self.assertPublishedMany(publish_mock, {})

        CPUCollector.PROC = self.getFixturePath('473_2')
        self.collector.collect()

        patch_open.stop()

        totals = {}

        for call in publish_mock.mock_calls:
            call = call[1]
            if call[0][:6] == 'total.':
                continue
            if call[1] > 100:
                raise ValueError("metric %s: %s should not be over 100!" % (
                    call[0], call[1]))
            k = call[0][:4]
            totals[k] = totals.get(k, 0) + call[1]

        for t in totals:
            # Allow rounding errors
            if totals[t] >= 101:
                raise ValueError(
                    "metric total for %s: %s should not be over 100!" % (
                        t, totals[t]))

        No cpu value should ever be over 100
        
src/collectors/cpu/test/testcpu.py