'When double fork succeeded in C{daemonize}, the child process writes
B{0} to the status pipe.'

def test_success(self):

    with AlternateReactor(FakeDaemonizingReactor()):
        self.runner.postApplication()
    self.assertEqual(self.mockos.actions, [('chdir', '.'), ('umask', 63), ('fork', True), 'setsid', ('fork', True), ('write', (-2), '0'), ('unlink', 'twistd.pid')])
    self.assertEqual(self.mockos.closed, [(-3), (-2)])
