def test_SSHFP(self):
        """
        The byte stream written by L{dns.Record_SSHFP.encode} can be used by
        L{dns.Record_SSHFP.decode} to reconstruct the state of the original
        L{dns.Record_SSHFP} instance.
        """

        fp = b'\xda\x39\xa3\xee\x5e\x6b\x4b\x0d' + \
             b'\x32\x55\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09'
        rr = dns.Record_SSHFP(
            algorithm=dns.Record_SSHFP.ALGORITHM_DSS,
            fingerprintType=dns.Record_SSHFP.FINGERPRINT_TYPE_SHA1,
            fingerprint=fp,
            )
        self._recordRoundtripTest(rr)
        self.assertEncodedFormat(b'\x02\x01' + fp, rr)

        The byte stream written by L{dns.Record_SSHFP.encode} can be used by
        L{dns.Record_SSHFP.decode} to reconstruct the state of the original
        L{dns.Record_SSHFP} instance.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py