def newFile(self, lines):
        """
        Create a new fake file (the next file that self.ui will open) with the
        given list of lines to be returned from readline().
        """
        self.fakeFile = FakeFile()
        self.fakeFile.inlines = lines

        Create a new fake file (the next file that self.ui will open) with the
        given list of lines to be returned from readline().
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_knownhosts.py