'Adding, removing, and listing writers works.'

def test_writers(self):

    writer = object()
    reactor = MemoryReactor()
    reactor.addWriter(writer)
    reactor.addWriter(writer)
    self.assertEqual(reactor.getWriters(), [writer])
    reactor.removeWriter(writer)
    self.assertEqual(reactor.getWriters(), [])
