summaryrefslogtreecommitdiff
path: root/tests/01_test_help.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-01-12 15:37:49 +0200
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-05 14:20:04 +0300
commit103d54aa93faaa47f6dbef28e9a794b0c1255e1b (patch)
treeb1ef0ab85bc2c8034f845afbd9c2f559d435d59d /tests/01_test_help.py
parentcc11663d913ff75777686b52d7759c6805199b82 (diff)
downloadgit-buildpackage-103d54aa93faaa47f6dbef28e9a794b0c1255e1b.tar.gz
git-buildpackage-103d54aa93faaa47f6dbef28e9a794b0c1255e1b.tar.bz2
git-buildpackage-103d54aa93faaa47f6dbef28e9a794b0c1255e1b.zip
Introduce git-import-srpm tool
Initial version of the git-import-srpm: a tool for importing source rpms. Unit tests: created a separate method in TestHelp for RPM-specific commands. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Diffstat (limited to 'tests/01_test_help.py')
-rw-r--r--tests/01_test_help.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/01_test_help.py b/tests/01_test_help.py
index 673d8708..331d7cc6 100644
--- a/tests/01_test_help.py
+++ b/tests/01_test_help.py
@@ -25,4 +25,13 @@ class TestHelp(unittest.TestCase):
m.main,
['doesnotmatter', '--help'])
+ """Test help output of RPM-specific commands"""
+ def testHelpRpm(self):
+ for script in ['import_srpm']:
+ module = 'gbp.scripts.%s' % script
+ m = __import__(module, globals(), locals(), ['main'], -1)
+ self.assertRaises(SystemExit,
+ m.main,
+ ['doesnotmatter', '--help'])
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: