# -*- coding: utf-8 -*-
import unittest
import pyqualys


class TestGetService(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.__instance = pyqualys.QualysAPI(username="admin",
                                            password="admin",
                                            host="https://abc123.com/")
        cls.__service = cls.__instance.service("vulnerability")

    def test_list_service(self):
        self.assertEqual(self.__instance.list_services(), ["vulnerability"])


if __name__ == '__main__':
    suite = unittest.TestLoader().loadTestsFromTestCase(TestGetService)
    unittest.TextTestRunner(verbosity=2).run(suite)
