syncthing-monitor/test/test_config.py

11 lines
308 B
Python
Raw Normal View History

2021-01-28 10:56:11 +00:00
import unittest
from syncthing_monitor.config_xml import parse_api_key
class ConfigTests(unittest.TestCase):
def test_can_parse_api_key(self):
# noinspection SpellCheckingInspection
self.assertEqual(parse_api_key('test/test-syncthing-config.xml'), "dFoLNEaqEZFSP62EFVGC2Ds5juuTmvH2")