'L{dns._OPTHeader.decode} raises an exception if the supplied
RDLEN is too long.'

def test_decodeRdlengthTooLong(self):

    b = BytesIO((OPTNonStandardAttributes.bytes(excludeOptions=True) + '\x00\x07\x00\x01\x00\x02\x00\x00'))
    h = dns._OPTHeader()
    self.assertRaises(EOFError, h.decode, b)
