"""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'])
"directdisk-*.direct")))
def testbuild_image_name(self):
+ """Test wic create directdisk --image-name core-image-minimal"""
self._build(["create", "directdisk",
"--image-name", "core-image-minimal"])
def testbuild_artifacts(self):
+ """Test wic create directdisk providing all artifacts."""
self._build(["create", "directdisk",
"-b", "tmp/sysroots/qemux86/usr/share",
"-k", "tmp/deploy/images/qemux86",