def testEncoder(self):
        for value, encodedValue in self.cases:
            result = self.encoding.encode(value)
            self.failUnlessEqual(result, encodedValue, 'Value "%s" not correctly encoded! Expected "%s", got "%s"' % (value, encodedValue, result))
Tests the bencode encoder
dataset/ETHPy150Open lbryio/lbry/tests/dht/testEncoding.py/BencodeTest.testEncoder