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