summaryrefslogtreecommitdiff
path: root/scripts/tests/01_wic_test_help.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-23 23:49:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-03 11:39:46 +0100
commit3a7ea88528619fdc9d2a0cc0d136e339126e8861 (patch)
tree503d47f5de4697300ee3b8849ed37b386a4708d9 /scripts/tests/01_wic_test_help.py
parent7f33777ba5ffe9108309b6e3c3801b711adda4a0 (diff)
downloadopenembedded-core-3a7ea88528619fdc9d2a0cc0d136e339126e8861.tar.gz
openembedded-core-3a7ea88528619fdc9d2a0cc0d136e339126e8861.tar.bz2
openembedded-core-3a7ea88528619fdc9d2a0cc0d136e339126e8861.zip
wic tests: Add docstrings to test methods
Docstrings make nosetests output more clear: Test wic create --help ... ok Test wic --help ... ok Test wic list --help ... ok Test wic create directdisk providing all artifacts. ... ok Test wic create directdisk --image-name core-image-minimal ... ok Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/tests/01_wic_test_help.py')
-rw-r--r--scripts/tests/01_wic_test_help.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/tests/01_wic_test_help.py b/scripts/tests/01_wic_test_help.py
index a64cf2f28e..4aaa66fcbf 100644
--- a/scripts/tests/01_wic_test_help.py
+++ b/scripts/tests/01_wic_test_help.py
@@ -28,13 +28,17 @@ class TestWicHelp(unittest.TestCase):
"""Test help output of wic (sub)commands"""
def setUp(self):
+ """This code is executed before each test method."""
self.main = imp.load_source("wic", "wic").main
def testhelp(self):
+ """Test wic --help"""
self.assertRaises(SystemExit, self.main, ['--help'])
def testcreatehelp(self):
+ """Test wic create --help"""
self.assertRaises(SystemExit, self.main, ['create', '--help'])
def testlisthelp(self):
+ """Test wic list --help"""
self.assertRaises(SystemExit, self.main, ['list', '--help'])