def test_column_decipher2(self): expected = "AMIDSUMMERNIGHTSDREAM" encrypted = "SIEIRDDNRMHMUGAAMTMES" key = "SWINDON" result = Cipher.column_decipher(encrypted, key) self.assertEquals(expected, result)
def test_column_decipher(self): expected = "PIERWSZYM PARAMETREM SZYFRU KOLUMNOWEGO JEST LICZBA" encrypted = "RROAFGAPYEB ZWZMSOCY NIZMMLSEU WRLTRTOSEEKEIM JPAU " key = "JIHGFĘEDĆCBĄA" result = Cipher.column_decipher(encrypted, key) self.assertEquals(expected, result)