mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Added utils test
This commit is contained in:
parent
e4ac36fbe2
commit
a1c7bd807a
1 changed files with 21 additions and 0 deletions
21
tests/test_utilities.py
Normal file
21
tests/test_utilities.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
import unittest
|
||||
from slpkg.utilities import Utilities
|
||||
from slpkg.configs import Configs
|
||||
|
||||
|
||||
class TestUtilities(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.utils = Utilities()
|
||||
self.build_path = Configs.build_path
|
||||
|
||||
def test_build_tag(self):
|
||||
self.assertEqual(['2'], self.utils.build_tag(self.build_path,
|
||||
'fish'))
|
||||
|
||||
def test_ins_installed(self):
|
||||
self.assertEqual(True, self.utils.is_installed('fish-3.4.0'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in a new issue