(patching)
| 75 | |
| 76 | |
| 77 | def test_ps(patching): |
| 78 | Process = patching('celery.utils.debug.Process') |
| 79 | getpid = patching('os.getpid') |
| 80 | prev, debug._process = debug._process, None |
| 81 | try: |
| 82 | debug.ps() |
| 83 | Process.assert_called_with(getpid()) |
| 84 | assert debug._process is Process() |
| 85 | finally: |
| 86 | debug._process = prev |
nothing calls this directly
no test coverage detected