11 lines
308 B
Python
11 lines
308 B
Python
|
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")
|