'L{dns._OPTHeader.decode} discards the name which is encoded in
the supplied bytes. The name attribute of the resulting
L{dns._OPTHeader} instance will always be L{dns.Name(b\'\')}.'

def test_decodeDiscardsName(self):

    b = BytesIO((OPTNonStandardAttributes.bytes(excludeName=True) + '\x07example\x03com\x00'))
    h = dns._OPTHeader()
    h.decode(b)
    self.assertEqual(h.name, dns.Name(''))
