File: 01_test_help.py

package info (click to toggle)
git-buildpackage 0.6.0~git20120601
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,000 kB
  • sloc: python: 5,379; sh: 381; makefile: 70
file content (22 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# vim: set fileencoding=utf-8 :

"""Check if --help works"""

import os
import unittest

class TestHelp(unittest.TestCase):
    """Test help output of gbp commands"""
    os.environ['PYTHONPATH'] = '.'

    def testHelp(self):
        for prog in [ "buildpackage", "import-orig", "import-dsc", "dch" ]:
            ret = os.system("bin/git-%s --help >/dev/null" % prog)
            self.assertEqual(ret, 0)

    def testHelpGbp(self):
        for prog in [ "pull", "clone", "pq", "create-remote-repo" ]:
            ret = os.system("bin/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\:·: