'If the OPT bytes contain variable options,
L{dns._OPTHeader.decode} will populate a list
L{dns._OPTHeader.options} with L{dns._OPTVariableOption}
instances.'

def test_decodeWithOptions(self):

    b = BytesIO((OPTNonStandardAttributes.bytes(excludeOptions=True) + '\x00\x14\x00\x01\x00 DCTB foobarbaz\x00\x02\x00\x03qux'))
    h = dns._OPTHeader()
    h.decode(b)
    self.assertEqual(h.options, [dns._OPTVariableOption(1, 'foobarbaz'), dns._OPTVariableOption(2, 'qux')])
