'Should change process UID to specified value.'

def test_changes_user_id_to_uid(self):

    args = self.test_args
    uid = self.test_uid
    expect_mock_output = ('                                                ...\n                                                Called    os.setuid(%(uid)r)\n                                                ' % vars())
    daemon.daemon.change_process_owner(**args)
    self.failUnlessMockCheckerMatch(expect_mock_output)
