1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Update for new version of ComfyChair: some methods are renamed to be

more consistent, and it now looks at command-line arguments to work
out what to do.

Run this program to get a quick demonstration of what ComfyChair does.
(This used to be commit 9b0c59a107)
This commit is contained in:
Martin Pool 2003-03-12 07:17:39 +00:00
parent 62ead1b8be
commit 52fbbf051b

View File

@ -3,26 +3,31 @@
# meta-test-case / example for comfychair. Should demonstrate
# different kinds of failure.
import comfychair, stf
import comfychair
class NormalTest(comfychair.TestCase):
def runTest(self):
def runtest(self):
pass
class RootTest(comfychair.TestCase):
def setUp(self):
def setup(self):
self.require_root()
def runTest(self):
pass
class GoodExecTest(comfychair.TestCase):
def runTest(self):
exit, stdout = self.runCmdUnchecked("ls -l")
def runtest(self):
stdout = self.runcmd("ls -l")
class BadExecTest(comfychair.TestCase):
def setUp(self):
exit, stdout = self.runCmdUnchecked("spottyfoot --slobber",
skip_on_noexec = 1)
def setup(self):
exit, stdout = self.runcmd_unchecked("spottyfoot --slobber",
skip_on_noexec = 1)
comfychair.runtests([NormalTest, RootTest, GoodExecTest, BadExecTest])
tests = [NormalTest, RootTest, GoodExecTest, BadExecTest]
if __name__ == '__main__':
comfychair.main(tests)