(self)
| 4125 | self.assertEqual(stdout.getvalue(), header + '\n') |
| 4126 | |
| 4127 | def test_run_module(self): |
| 4128 | script = """print("SUCCESS")""" |
| 4129 | commands = """ |
| 4130 | continue |
| 4131 | quit |
| 4132 | """ |
| 4133 | stdout, stderr = self.run_pdb_module(script, commands) |
| 4134 | self.assertTrue(any("SUCCESS" in l for l in stdout.splitlines()), stdout) |
| 4135 | |
| 4136 | def test_module_is_run_as_main(self): |
| 4137 | script = """ |
nothing calls this directly
no test coverage detected