def bytes(cls):
        """
        Bytes which are expected when encoding an instance constructed using
        C{kwargs} and which are expected to result in an identical instance when
        decoded.

        @return: The L{bytes} of a wire encoded message.
        """
        return (
            b'\x01\x00' # ID: 256
            b'\x95' # QR: 1, OPCODE: 2, AA: 1, TC: 0, RD: 1
            b'\x8f' # RA: 1, Z, RCODE: 15
            b'\x00\x01' # Query count
            b'\x00\x01' # Answer count
            b'\x00\x01' # Authorities count
            b'\x00\x01' # Additionals count

            # Query begins at Byte 12
            b'\x07example\x03com\x00' # QNAME
            b'\x00\x06' # QTYPE 6 (SOA)
            b'\x00\x01' # QCLASS 1 (IN)

            # Answers
            b'\xc0\x0c' # RR NAME (compression ref b12)
            b'\x00\x06' # RR TYPE 6 (SOA)
            b'\x00\x01' # RR CLASS 1 (IN)
            b'\xff\xff\xff\xff' # RR TTL
            b'\x00\x27' # RDLENGTH 39
            b'\x03ns1\xc0\x0c' # Mname (ns1.example.com (compression ref b15)
            b'\x0ahostmaster\xc0\x0c' # rname (hostmaster.example.com)
            b'\xff\xff\xff\xfe' # Serial
            b'\x7f\xff\xff\xfd' # Refresh
            b'\x7f\xff\xff\xfc' # Retry
            b'\x7f\xff\xff\xfb' # Expire
            b'\xff\xff\xff\xfa' # Minimum

            # Authority
            b'\xc0\x0c' # RR NAME (example.com compression ref b12)
            b'\x00\x02' # RR TYPE 2 (NS)
            b'\x00\x01' # RR CLASS 1 (IN)
            b'\xff\xff\xff\xff' # RR TTL
            b'\x00\x02' # RDLENGTH
            b'\xc0\x29' # RDATA (ns1.example.com (compression ref b41)

            # Additional
            b'\xc0\x29' # RR NAME (ns1.example.com compression ref b41)
            b'\x00\x01' # RR TYPE 1 (A)
            b'\x00\x01' # RR CLASS 1 (IN)
            b'\xff\xff\xff\xff' # RR TTL
            b'\x00\x04' # RDLENGTH
            b'\x05\x06\x07\x08' # RDATA 5.6.7.8
        )

        Bytes which are expected when encoding an instance constructed using
        C{kwargs} and which are expected to result in an identical instance when
        decoded.

        @return: The L{bytes} of a wire encoded message.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py