(self, initgroups_, getpwuid)
| 380 | @patch('pwd.getpwuid') |
| 381 | @patch('os.initgroups', create=True) |
| 382 | def test_with_initgroups(self, initgroups_, getpwuid): |
| 383 | getpwuid.return_value = ['user'] |
| 384 | initgroups(5001, 50001) |
| 385 | initgroups_.assert_called_with('user', 50001) |
| 386 | |
| 387 | @patch('celery.platforms.setgroups') |
| 388 | @patch('grp.getgrall') |
nothing calls this directly
no test coverage detected