'Removing a filesystem file writer from a reactor will make sure it is
no longer polled.'

def test_removeWriter(self):

    reactor = self.buildReactor()
    self.addCleanup(self.unbuildReactor, reactor)
    self.f = f = open(self.mktemp(), 'wb')
    protocol = Protocol()
    stdio = StandardIO(protocol, stdout=f.fileno(), stdin=self.extraFile.fileno(), reactor=reactor)
    protocol.transport.write('hello')
    self.assertIn(stdio._writer, reactor.getWriters())
    stdio._writer.stopWriting()
    self.assertNotIn(stdio._writer, reactor.getWriters())
