release-scripts: Remove RFCs in source4/.
[Samba/gbeck.git] / source3 / stf / test.py
blobfb57926cc3a9c0f41a25cde64e523e0372bf80ae
1 #!/usr/bin/python
3 # meta-test-case / example for comfychair. Should demonstrate
4 # different kinds of failure.
6 import comfychair
8 class NormalTest(comfychair.TestCase):
9 def runtest(self):
10 pass
12 class RootTest(comfychair.TestCase):
13 def setup(self):
14 self.require_root()
16 def runTest(self):
17 pass
19 class GoodExecTest(comfychair.TestCase):
20 def runtest(self):
21 stdout = self.runcmd("ls -l")
23 class BadExecTest(comfychair.TestCase):
24 def setup(self):
25 exit, stdout = self.runcmd_unchecked("spottyfoot --slobber",
26 skip_on_noexec = 1)
29 tests = [NormalTest, RootTest, GoodExecTest, BadExecTest]
31 if __name__ == '__main__':
32 comfychair.main(tests)