'L{dns._OPTHeader.decode} reads all the bytes of the record
that is being decoded.'

def test_decodeAllExpectedBytes(self):

    b = BytesIO(OPTNonStandardAttributes.bytes())
    decodedHeader = dns._OPTHeader()
    decodedHeader.decode(b)
    self.assertEqual(b.tell(), len(b.getvalue()))
