slpkg/tests/test_checks.py
Dimitris Zlatanidis 9556d73258 Added tests
2022-06-21 18:40:06 +03:00

26 lines
691 B
Python

import unittest
from slpkg.checks import Check
class TestPkgInstalled(unittest.TestCase):
def setUp(self):
self.check = Check()
self.packages = ['Flask', 'colored', 'slpkg']
def test_check_exists(self):
self.assertIsNone(self.check.exists(self.packages))
def tect_check_unsupported(self):
self.assertIsNone(self.check.unsupported(self.packages))
def test_check_installed(self):
self.assertIsNone(self.check.installed(self.packages))
def test_check_blacklist(self):
self.assertListEqual(self.packages,
self.check.blacklist(self.packages))
if __name__ == "__main__":
unittest.main()