@qc(1)
    def get_host_cpu_mhz_exception():
        cpu_mhz = 1
        total = 1.
        prev_total = 0.
        busy = 1.
        prev_busy = 2.
        with MockTransaction:
            expect(collector).get_host_cpu_time(). \
                and_return((total, busy)).once()
            try:
                collector.get_host_cpu_mhz(cpu_mhz, prev_total, prev_busy)
                assert False
            except __HOLE__:
                assert True
dataset/ETHPy150Open beloglazov/openstack-neat/tests/locals/test_collector.py/Collector.get_host_cpu_mhz_exception