def _securedFunction(self, startUID, startGID, wantUID, wantGID):
        self.assertTrue(wantUID == startUID or
                        wantUID == self.mockos.seteuidCalls[-1])
        self.assertTrue(wantGID == startGID or
                        wantGID == self.mockos.setegidCalls[-1])
Check if wanted UID/GID matched start or saved ones.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_util.py/RunAsEffectiveUserTests._securedFunction