Skip to content
Snippets Groups Projects
test_panel_brightness.py 185 B
Newer Older
Guido Gunther's avatar
Guido Gunther committed
def test_panel_brightness():
    "Check if current panel brighness is in [0..9]"
    f = open("/sys/class/backlight/backlight_dsi/brightness")
    assert int(f.read()) in range(0, 101)