forked from ungleich-public/cdist
test if banner works
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
e162861b17
commit
5d018393a9
1 changed files with 7 additions and 0 deletions
7
test.py
7
test.py
|
@ -24,6 +24,7 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
@ -149,5 +150,11 @@ class Config(unittest.TestCase):
|
||||||
|
|
||||||
self.assertFalse(failed)
|
self.assertFalse(failed)
|
||||||
|
|
||||||
|
|
||||||
|
class UI(unittest.TestCase):
|
||||||
|
def test_banner(self):
|
||||||
|
self.assertEqual(subprocess.call([cdist_exec_path, "banner"]), 0)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in a new issue