(self)
| 1010 | return self.run_python(cmdargs, **kw) |
| 1011 | |
| 1012 | def test_success(self): |
| 1013 | code = textwrap.dedent(""" |
| 1014 | import unittest |
| 1015 | |
| 1016 | class PassingTests(unittest.TestCase): |
| 1017 | def test_test1(self): |
| 1018 | pass |
| 1019 | |
| 1020 | def test_test2(self): |
| 1021 | pass |
| 1022 | |
| 1023 | def test_test3(self): |
| 1024 | pass |
| 1025 | """) |
| 1026 | tests = [self.create_test(f'ok{i}', code=code) for i in range(1, 6)] |
| 1027 | |
| 1028 | output = self.run_tests(*tests) |
| 1029 | self.check_executed_tests(output, tests, |
| 1030 | stats=3 * len(tests)) |
| 1031 | |
| 1032 | def test_skip(self): |
| 1033 | code = textwrap.dedent(""" |
nothing calls this directly
no test coverage detected