def loadSampleHostsFile(self, content=(
            sampleHashedLine + otherSamplePlaintextLine +
            b"\n# That was a blank line.\n"
            b"This is just unparseable.\n"
            b"|1|This also unparseable.\n")):
        """
        Return a sample hosts file, with keys for www.twistedmatrix.com and
        divmod.com present.
        """
        return KnownHostsFile.fromPath(self.pathWithContent(content))

        Return a sample hosts file, with keys for www.twistedmatrix.com and
        divmod.com present.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_knownhosts.py