(self, example="helloworld.py")
| 54 | |
| 55 | class ExamplesTest(unittest.TestCase): |
| 56 | def test_helloworld(self, example="helloworld.py"): |
| 57 | with run([example]) as p: |
| 58 | output = [line.strip() for line in p.stdout] |
| 59 | self.assertEqual(output, ['Hello World!']) |
| 60 | |
| 61 | def test_helloworld_direct(self): |
| 62 | self.test_helloworld('helloworld_direct.py') |
no test coverage detected