(self)
| 976 | return self.run_python(cmdargs, **kw) |
| 977 | |
| 978 | def test_success(self): |
| 979 | code = textwrap.dedent(""" |
| 980 | import unittest |
| 981 | |
| 982 | class PassingTests(unittest.TestCase): |
| 983 | def test_test1(self): |
| 984 | pass |
| 985 | |
| 986 | def test_test2(self): |
| 987 | pass |
| 988 | |
| 989 | def test_test3(self): |
| 990 | pass |
| 991 | """) |
| 992 | tests = [self.create_test(f'ok{i}', code=code) for i in range(1, 6)] |
| 993 | |
| 994 | output = self.run_tests(*tests) |
| 995 | self.check_executed_tests(output, tests, |
| 996 | stats=3 * len(tests)) |
| 997 | |
| 998 | def test_skip(self): |
| 999 | code = textwrap.dedent(""" |
nothing calls this directly
no test coverage detected