Commit 5e334c04 authored by Rafael Monnerat's avatar Rafael Monnerat

Include basic unit test run

  Now people can easily add tests
parent ac7769d9
...@@ -88,4 +88,5 @@ setup(name=name, ...@@ -88,4 +88,5 @@ setup(name=name,
'networkbench = slapos.networkbench:main' 'networkbench = slapos.networkbench:main'
] ]
}, },
test_suite='slapos.test',
) )
import unittest
from slapos.systool import sublist
class TestSystool(unittest.TestCase):
def test_sublist(self):
assert sublist("ab", "b")
assert sublist("ac", "b") == False
if __name__ == '__main__':
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment