def test_cpuidle():
    assert("WFI\n" == open("/sys/devices/system/cpu/cpu0/cpuidle/state0/name").read())
    assert("cpu-sleep\n" == open("/sys/devices/system/cpu/cpu0/cpuidle/state1/name").read())
