@@ -0,0 +1,1511 @@
+#!/usr/bin/env python%0Afrom nephoria.testcase_utils.cli_test_runner import CliTestRunner, SkipTestException%0Aimport time%0A%0A%0Aclass SampleTestSuite1(CliTestRunner):%0A    _DEFAULT_CLI_ARGS = CliTestRunner._DEFAULT_CLI_ARGS%0A    _DEFAULT_CLI_ARGS%5B'sample_arg'%5D = %7B'args': %5B'--sample-arg'%5D,%0A                                       'kwargs': %7B'help': 'This sample arg is mandatory',%0A                                                  'default': None,%0A                                                  'required': True%7D%7D%0A%0A%0A%0A    def test1(self, string_to_print='This is the default'):%0A        self.log.info(string_to_print)%0A%0A    def test2_ditto(self):%0A        self.test1(string_to_print='This is test2 now')%0A%0A    def test12_skip_me(self):%0A        raise SkipTestException('I was too lazy to run')%0A%0A    def test_33_failure_test(self, a=1, b=2, c=3):%0A        time.sleep(1)%0A        if a == 1:%0A            raise ValueError('a == 1, so I am failing')%0A%0A    def test3_arg_usage(self):%0A        print %22Heres all the command line arguments in self._DEFAULT_CLI_ARGS...%22%0A        self.show_args()%0A        if not self.args.sample_arg:%0A            raise ValueError('The sample arg was empty:%22%7B0%7D%22, I thought we said to set this'%0A                             .format(self.args.sample_arg))%0A        else:%0A            self.log.info('You set the sample arg to: %22%7B0%7D%22'.format(self.args.sample_arg))%0A%0A    def clean_method(self):%0A        print 'Cleaning...'%0A%0Aif __name__ == %22__main__%22:%0A%0A    test = SampleTestSuite1()%0A    test.run_test_case_list()%0A%0A

Add sample test case