1
mirror of https://github.com/streamlink/streamlink synced 2024-08-18 10:15:04 +02:00
streamlink/tests/test_options.py
Charlie Drage a6ceedc4e7 Rename instances of "livestreamer" to "streamlink"
Renames all instances of "livestreamer" to "streamlink".
2016-09-19 15:46:06 -04:00

21 lines
518 B
Python

import unittest
from streamlink.options import Options
class TestOptions(unittest.TestCase):
def setUp(self):
self.options = Options({
"a_default": "default"
})
def test_options(self):
self.assertEqual(self.options.get("a_default"), "default")
self.assertEqual(self.options.get("non_existing"), None)
self.options.set("a_option", "option")
self.assertEqual(self.options.get("a_option"), "option")
if __name__ == "__main__":
unittest.main()