(self, initgroups_, getpwuid)
| 530 | @patch('pwd.getpwuid') |
| 531 | @patch('os.initgroups', create=True) |
| 532 | def test_with_initgroups(self, initgroups_, getpwuid): |
| 533 | getpwuid.return_value = ['user'] |
| 534 | initgroups(5001, 50001) |
| 535 | initgroups_.assert_called_with('user', 50001) |
| 536 | |
| 537 | @patch('celery.platforms.setgroups') |
| 538 | @patch('grp.getgrall') |
nothing calls this directly
no test coverage detected