def test_interval_when_poll_sec_is_None(): s = SettingsData(1, {"poll_sec": None}) assert s.interval() == 600
def test_interval_when_poll_sec_is_greater_than_zero(): s = SettingsData(1, {"poll_sec": 123}) assert s.interval() == 123
def test_interval_when_no_poll_sec(): s = SettingsData(1, {}) assert s.interval() == 600
def test_interval_when_poll_sec_is_zero(): s = SettingsData(1, {"poll_sec": 0}) assert s.interval() == 600