'When L{TimerService.stopService} is called while a call is in progress.
the L{Deferred} returned doesn\'t fire until after the call finishes.'

def test_stopServiceWaits(self):

    self.timer.startService()
    d = self.timer.stopService()
    self.assertNoResult(d)
    self.assertEqual(True, self.timer.running)
    self.deferred.callback(object())
    self.assertIdentical(self.successResultOf(d), None)
