'Should change process UID and GID to `uid` and `gid` options.'

def test_changes_owner_to_specified_uid_and_gid(self):

    instance = self.test_instance
    uid = object()
    gid = object()
    instance.uid = uid
    instance.gid = gid
    expect_mock_output = ('                                                ...\n                                                Called    daemon.daemon.change_process_owner(%(uid)r,    %(gid)r)\n                                                ...\n                                                ' % vars())
    instance.open()
    self.failUnlessMockCheckerMatch(expect_mock_output)
