more asserts

This commit is contained in:
Roberto Alsina 2020-02-05 18:38:09 -03:00
parent c7d2477f76
commit ba7cf07550

View File

@ -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"