'Adding a writer causes its C{doWrite} to be called every 1
milliseconds.'

def test_writerPolling(self):

    reactor = Clock()
    poller = _ContinuousPolling(reactor)
    desc = Descriptor()
    poller.addWriter(desc)
    self.assertEqual(desc.events, [])
    reactor.advance(0.001)
    self.assertEqual(desc.events, ['write'])
    reactor.advance(0.001)
    self.assertEqual(desc.events, ['write', 'write'])
    reactor.advance(0.001)
    self.assertEqual(desc.events, ['write', 'write', 'write'])
