'L{Name.decode} raises L{ValueError} if the stream passed to it includes
a compression pointer which forms a loop, causing the name to be
undecodable.'

def test_rejectCompressionLoop(self):

    name = dns.Name()
    stream = BytesIO('\xc0\x00')
    self.assertRaises(ValueError, name.decode, stream)
