aboutsummaryrefslogtreecommitdiff
path: root/tests/01_test_help.py
blob: eba64c1244f6ebdbda76b8f2fd02a59e10245ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# vim: set fileencoding=utf-8 :
#
# check if --help works

import os
import unittest

class TestHelp(unittest.TestCase):
    """Test help output of gbp commands"""
    def testHelp(self):
        for prog in [ "buildpackage", "import-orig", "import-dsc", "dch" ]:
            ret = os.system("./git-%s --help >/dev/null" % prog)
            self.assertEqual(ret, 0)

    def testHelpGbp(self):
        for prog in [ "pull", "clone" ]:
            ret = os.system("./gbp-%s --help >/dev/null" % prog)
            self.assertEqual(ret, 0)

# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: