'When pickling L{internet.TimerService}, it won\'t pickle
L{internet.TimerService._loopFinished}.'

def test_pickleTimerServiceNotPickleLoopFinished(self):

    timer = TimerService(1, fakeTargetFunction)
    timer.startService()
    dumpedTimer = pickle.dumps(timer)
    timer.stopService()
    loadedTimer = pickle.loads(dumpedTimer)
    nothing = object()
    value = getattr(loadedTimer, '_loopFinished', nothing)
    self.assertIdentical(nothing, value)
