test/testLevelEncryptor.py
def testApplyXor(self):
        seq=[1,2,3,4]
        result=self.levelEncryptor.applyXor(seq,40)
        self.assertNotEqual(result,seq)
        "if xored again should return original value"
        self.assertEqual(seq,self.levelEncryptor.applyXor(result,40))
if xored again should return original value
if xored again should return original value
if xored again should return original value
def testApplyXor(self):
        seq=[1,2,3,4]
        result=self.levelEncryptor.applyXor(seq,40)
        self.assertNotEqual(result,seq)
        self.assertEqual(seq,self.levelEncryptor.applyXor(result,40))
def testApplyXor ( self ) : seq = [ 1 , 2 , 3 , 4 ] result = self . levelEncryptor . applyXor ( seq , 40 ) self . assertNotEqual ( result , seq ) self . assertEqual ( seq , self . levelEncryptor . applyXor ( result , 40 ) )
if xored again should return original value
if xored again should return original value
"if xored again should return original value"
self