File: test_cpu_stat.py

package info (click to toggle)
python-pure-python-adb 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,500 kB
  • sloc: python: 2,597; makefile: 8; sh: 1
file content (11 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
def test_get_cpu_times(device):
    result = device.cpu_times()
    assert result is not None

def test_get_cpu_percent(device):
    percent = device.cpu_percent(interval=1)
    assert percent is not None
    assert percent != 0

def test_get_cpu_count(device):
    assert device.cpu_count() == 2