Exemple #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.'
     )
 def testEncipherRot0(self):
     self.assertEqual(hw.encipher("a A!", 0), "a A!")
 def testEncipherEmpty(self):
     self.assertEqual(hw.encipher("", 19), "")
 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.",
     )
 def testEncipherStr2(self):
     self.assertEqual(hw.encipher("youre joking Mr. Feynman!", 10), "iyebo tyusxq Wb. Poixwkx!")
 def testEncipherStr1(self):
     self.assertEqual(hw.encipher("abcdefghijklmnopqrstuvwxyz ABCZ!", 1), "bcdefghijklmnopqrstuvwxyza BCDA!")
Exemple #7
0
 def testEncipherRot0(self):
     self.assertEqual(hw.encipher('a A!', 0), 'a A!')
Exemple #8
0
 def testEncipherEmpty(self):
     self.assertEqual(hw.encipher('', 19), '')
Exemple #9
0
 def testEncipherStr2(self):
     self.assertEqual(hw.encipher('youre joking Mr. Feynman!', 10),
                      'iyebo tyusxq Wb. Poixwkx!')
Exemple #10
0
 def testEncipherStr1(self):
     self.assertEqual(hw.encipher('abcdefghijklmnopqrstuvwxyz ABCZ!', 1),
                      'bcdefghijklmnopqrstuvwxyza BCDA!')