#NEWLINE# def testEncoder( self ) : #NEWLINE# #INDENT# ' Tests the bencode encoder ' #NEWLINE# for ( value , encodedValue ) in self . cases : #NEWLINE# #INDENT# result = self . encoding . encode ( value ) #NEWLINE# self . failUnlessEqual ( result , result , ( 'Value "%s" not correctly encoded! Expected "%s", got "%s"' % ( value , encodedValue , result ) ) )