1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00
supysonic/tests/api/test_system.py
Alban Féron f8018b2751
Some housekeeping
Trying to make flake8 happy
2020-11-29 17:24:28 +01:00

25 lines
596 B
Python

# 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.
import unittest
from .apitestbase import ApiTestBase
class SystemTestCase(ApiTestBase):
def test_ping(self):
self._make_request("ping")
def test_get_license(self):
rv, child = self._make_request("getLicense", tag="license")
self.assertEqual(child.get("valid"), "true")
if __name__ == "__main__":
unittest.main()