'L{util.switchUID} calls L{util.initgroups} and then C{os.seteuid} with
the given uid if the C{euid} parameter is set to C{True}.'

def test_euid(self):

    util.switchUID(12000, None, True)
    self.assertEqual(self.initgroupsCalls, [(12000, None)])
    self.assertEqual(self.mockos.seteuidCalls, [12000])
