def test_sshfp(self):
        """
        Two L{dns.Record_SSHFP} instances compare equal if and only if
        they have the same key type, fingerprint type, fingerprint, and ttl.
        """
        # Vary the key type.
        self._equalityTest(
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(2, 2, b'happyday', 40))
        # Vary the fingerprint type.
        self._equalityTest(
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 1, b'happyday', 40))
        # Vary the fingerprint itself.
        self._equalityTest(
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happxday', 40))
        # Vary the ttl.
        self._equalityTest(
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happyday', 40),
            dns.Record_SSHFP(1, 2, b'happyday', 45))

        Two L{dns.Record_SSHFP} instances compare equal if and only if
        they have the same key type, fingerprint type, fingerprint, and ttl.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py