def testDecoder(self):
        for value, encodedValue in self.cases:
            result = self.encoding.decode(encodedValue)
            self.failUnlessEqual(result, value, 'Value "%s" not correctly decoded! Expected "%s", got "%s"' % (encodedValue, value, result))
        for encodedValue in self.badDecoderCases:
            self.failUnlessRaises(lbrynet.dht.encoding.DecodeError, self.encoding.decode, encodedValue)
Testing intersects() and intersection().
dataset/ETHPy150Open lbryio/lbry/tests/dht/testEncoding.py/BencodeTest.testDecoder--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/gdal/tests/test_geom.py/OGRGeomTest.test11_intersection