'Adding a filesystem file reader to a reactor will make sure it is
polled.'

def test_addReader(self):

    reactor = self.buildReactor()
    class DataProtocol(Protocol, ):
        data = ''
        def dataReceived(self, data):
            self.data += data
            if (self.data == 'hello!'):
                reactor.stop()
    path = self.mktemp()
    with open(path, 'wb') as f:
        f.write('hello!')
    with open(path, 'rb') as f:
        protocol = DataProtocol()
        StandardIO(protocol, stdin=f.fileno(), stdout=self.extraFile.fileno(), reactor=reactor)
        self.runReactor(reactor)
    self.assertEqual(protocol.data, 'hello!')
