2017-11-01 19:55:35 +00:00
|
|
|
# This file is part of Supysonic.
|
|
|
|
# Supysonic is a Python implementation of the Subsonic server API.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2017 Alban 'spl0k' Féron
|
|
|
|
# 2017 Óscar García Amor
|
|
|
|
#
|
|
|
|
# Distributed under terms of the GNU AGPLv3 license.
|
|
|
|
|
2020-11-29 16:24:28 +00:00
|
|
|
import unittest
|
|
|
|
|
2017-11-01 19:55:35 +00:00
|
|
|
from .apitestbase import ApiTestBase
|
|
|
|
|
2019-06-29 15:25:44 +00:00
|
|
|
|
2017-11-01 19:55:35 +00:00
|
|
|
class SystemTestCase(ApiTestBase):
|
|
|
|
def test_ping(self):
|
2019-06-29 15:25:44 +00:00
|
|
|
self._make_request("ping")
|
2017-11-01 19:55:35 +00:00
|
|
|
|
|
|
|
def test_get_license(self):
|
2019-06-29 15:25:44 +00:00
|
|
|
rv, child = self._make_request("getLicense", tag="license")
|
|
|
|
self.assertEqual(child.get("valid"), "true")
|
2017-11-01 19:55:35 +00:00
|
|
|
|
|
|
|
|
2019-06-29 15:25:44 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
unittest.main()
|