'L{dns._OPTHeader.decode} unpacks the header fields from a file
like object and populates the attributes of an existing
L{dns._OPTHeader} instance.'

def test_decode(self):

    decodedHeader = dns._OPTHeader()
    decodedHeader.decode(BytesIO(OPTNonStandardAttributes.bytes()))
    self.assertEqual(decodedHeader, OPTNonStandardAttributes.object())
