def test_uids_gids(self):
        out = sh(self.pid % 'procstat -s %s')
        euid, ruid, suid, egid, rgid, sgid = out.split('\n')[1].split()[2:8]
        p = psutil.Process(self.pid)
        uids = p.uids()
        gids = p.gids()
        self.assertEqual(uids.real, int(ruid))
        self.assertEqual(uids.effective, int(euid))
        self.assertEqual(uids.saved, int(suid))
        self.assertEqual(gids.real, int(rgid))
        self.assertEqual(gids.effective, int(egid))
        self.assertEqual(gids.saved, int(sgid))

    # --- virtual_memory(); tests against sysctl
dataset/ETHPy150Open giampaolo/psutil/psutil/tests/test_bsd.py/FreeBSDSpecificTestCase.test_uids_gids/swapped operands of `%`