'L{util.switchUID} calls L{util.initgroups} and then C{os.setuid} with
the given uid.'

def test_uid(self):

    util.switchUID(12000, None)
    self.assertEqual(self.initgroupsCalls, [(12000, None)])
    self.assertEqual(self.mockos.actions, [('setuid', 12000)])
