mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-27 19:58:21 +01:00
Added installed test
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
cb2216b79e
commit
b55d66cbfc
1 changed files with 20 additions and 0 deletions
20
tests/test_installed.py
Normal file
20
tests/test_installed.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import unittest
|
||||
from slpkg.pkg.installed import GetFromInstalled
|
||||
|
||||
|
||||
class TestPkgInstalled(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.pkg_name = 'aaa_base'
|
||||
self.pkg_ver = '15.0'
|
||||
self.installed = GetFromInstalled('aaa_base')
|
||||
|
||||
def test_pkg_name(self):
|
||||
self.assertEqual(self.pkg_name, self.installed.name())
|
||||
|
||||
def test_pkg_version(self):
|
||||
self.assertEqual(self.pkg_ver, self.installed.version())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Loading…
Add table
Reference in a new issue