From ba7cf075505da61d28bc965932c6822d0938969e Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 5 Feb 2020 18:38:09 -0300 Subject: [PATCH] more asserts --- tests/test_xrandr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_xrandr.py b/tests/test_xrandr.py index 4341167..eb2ca1b 100644 --- a/tests/test_xrandr.py +++ b/tests/test_xrandr.py @@ -10,10 +10,12 @@ def test_parse_data(test_data): def test_parse_with_disconnected_monitors(test_data): data = test_data.read("fisa_sample.txt", deserialize=False).splitlines() - parse_data(data) + screen = parse_data(data) + assert screen.choose_a_monitor() == "DP-1-1" def test_replicated_monitors(test_data): data = test_data.read("replicated.txt", deserialize=False).splitlines() screen = parse_data(data) assert screen.monitors["eDP"].replica_of == ["HDMI-A-0"] + assert screen.choose_a_monitor() == "eDP"