'Return L{bytes} representing an encoded OPT record.
@param excludeName: A flag that controls whether to exclude
the name field. This allows a non-standard name to be
prepended during the test.
@type excludeName: L{bool}
@param excludeOptions: A flag that controls whether to exclude
the RDLEN field. This allows encoded variable options to be
appended during the test.
@type excludeOptions: L{bool}
@return: L{bytes} representing the encoded OPT record returned
by L{object}.'

@classmethod
def bytes(cls, excludeName=False, excludeOptions=False):

    rdlen = '\x00\x00'
    if excludeOptions:
        rdlen = ''
    return ('\x00\x00)\x02\x00\x03\x04\x80\x00' + rdlen)
