test if banner works

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-28 09:13:39 +02:00
parent e162861b17
commit 5d018393a9

View file

@ -24,6 +24,7 @@
import os
import sys
import shutil
import subprocess
import tempfile
import unittest
@ -149,5 +150,11 @@ class Config(unittest.TestCase):
self.assertFalse(failed)
class UI(unittest.TestCase):
def test_banner(self):
self.assertEqual(subprocess.call([cdist_exec_path, "banner"]), 0)
if __name__ == '__main__':
unittest.main()