Ejemplo n.º 1
0
 def testEncipherStr3(self):
     self.assertEqual(
         hw.encipher(
             'An education is what is left after you forget everything you learned.',
             5),
         'Fs jizhfynts nx bmfy nx qjky fkyjw dtz ktwljy jajwdymnsl dtz qjfwsji.'
     )
Ejemplo n.º 2
0
 def testEncipherRot0(self):
     self.assertEqual(hw.encipher("a A!", 0), "a A!")
Ejemplo n.º 3
0
 def testEncipherEmpty(self):
     self.assertEqual(hw.encipher("", 19), "")
Ejemplo n.º 4
0
 def testEncipherStr3(self):
     self.assertEqual(
         hw.encipher("An education is what is left after you forget everything you learned.", 5),
         "Fs jizhfynts nx bmfy nx qjky fkyjw dtz ktwljy jajwdymnsl dtz qjfwsji.",
     )
Ejemplo n.º 5
0
 def testEncipherStr2(self):
     self.assertEqual(hw.encipher("youre joking Mr. Feynman!", 10), "iyebo tyusxq Wb. Poixwkx!")
Ejemplo n.º 6
0
 def testEncipherStr1(self):
     self.assertEqual(hw.encipher("abcdefghijklmnopqrstuvwxyz ABCZ!", 1), "bcdefghijklmnopqrstuvwxyza BCDA!")
Ejemplo n.º 7
0
 def testEncipherRot0(self):
     self.assertEqual(hw.encipher('a A!', 0), 'a A!')
Ejemplo n.º 8
0
 def testEncipherEmpty(self):
     self.assertEqual(hw.encipher('', 19), '')
Ejemplo n.º 9
0
 def testEncipherStr2(self):
     self.assertEqual(hw.encipher('youre joking Mr. Feynman!', 10),
                      'iyebo tyusxq Wb. Poixwkx!')
Ejemplo n.º 10
0
 def testEncipherStr1(self):
     self.assertEqual(hw.encipher('abcdefghijklmnopqrstuvwxyz ABCZ!', 1),
                      'bcdefghijklmnopqrstuvwxyza BCDA!')