diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-23 23:49:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-03 11:43:49 +0100 |
commit | 6451c08c7b666992cf99d297c3c1d2226f94e83b (patch) | |
tree | d98c2000d35189b4d01ee75e0f4595df83d592f1 /scripts/tests/01_wic_test_help.py | |
parent | 9fbfd4011a4c770478ab9d4cb91a645468f74c55 (diff) | |
download | poky-6451c08c7b666992cf99d297c3c1d2226f94e83b.tar.gz |
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
(From OE-Core rev: 3a7ea88528619fdc9d2a0cc0d136e339126e8861)
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.py | 4 |
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): | |||
28 | """Test help output of wic (sub)commands""" | 28 | """Test help output of wic (sub)commands""" |
29 | 29 | ||
30 | def setUp(self): | 30 | def setUp(self): |
31 | """This code is executed before each test method.""" | ||
31 | self.main = imp.load_source("wic", "wic").main | 32 | self.main = imp.load_source("wic", "wic").main |
32 | 33 | ||
33 | def testhelp(self): | 34 | def testhelp(self): |
35 | """Test wic --help""" | ||
34 | self.assertRaises(SystemExit, self.main, ['--help']) | 36 | self.assertRaises(SystemExit, self.main, ['--help']) |
35 | 37 | ||
36 | def testcreatehelp(self): | 38 | def testcreatehelp(self): |
39 | """Test wic create --help""" | ||
37 | self.assertRaises(SystemExit, self.main, ['create', '--help']) | 40 | self.assertRaises(SystemExit, self.main, ['create', '--help']) |
38 | 41 | ||
39 | def testlisthelp(self): | 42 | def testlisthelp(self): |
43 | """Test wic list --help""" | ||
40 | self.assertRaises(SystemExit, self.main, ['list', '--help']) | 44 | self.assertRaises(SystemExit, self.main, ['list', '--help']) |