mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-21 18:42:22 +00:00
added tests
This commit is contained in:
parent
76a836b82a
commit
c7d2477f76
@ -21,9 +21,11 @@ def test_parse_modes(test_data):
|
|||||||
m = Monitor(data)
|
m = Monitor(data)
|
||||||
assert len(m.modes) == 9
|
assert len(m.modes) == 9
|
||||||
assert m.enabled
|
assert m.enabled
|
||||||
|
assert m.primary
|
||||||
|
|
||||||
|
|
||||||
def test_disabled_monitor(test_data):
|
def test_disabled_monitor(test_data):
|
||||||
data = test_data.read("disabled_monitor.txt", deserialize=False).splitlines()
|
data = test_data.read("disabled_monitor.txt", deserialize=False).splitlines()
|
||||||
m = Monitor(data)
|
m = Monitor(data)
|
||||||
assert m.enabled is False
|
assert m.enabled is False
|
||||||
|
assert m.primary is False
|
||||||
|
Loading…
Reference in New Issue
Block a user