'Should return True if parent process is `init`.'

def test_returns_true_if_parent_process_is_init(self):

    init_pid = 1
    os.getppid.mock_returns = init_pid
    expect_result = True
    result = daemon.daemon.is_process_started_by_init()
    self.failUnlessIs(expect_result, result)
