added tests

This commit is contained in:
Roberto Alsina 2020-02-05 18:36:32 -03:00
parent 76a836b82a
commit c7d2477f76

View File

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