예제 #1
0
 def test_2(self):
     result = encrypt("This is a test!", 1)
     self.assertEqual(result, "hsi  etTi sats!")
예제 #2
0
 def test_1(self):
     result = encrypt("This is a test!", 0)
     self.assertEqual(result, "This is a test!")
예제 #3
0
 def test_31(self):
     result = encrypt("", 0)
     self.assertEqual(result, "")
예제 #4
0
 def test_32(self):
     result = encrypt(None, 0)
     self.assertEqual(result, None)
예제 #5
0
 def test_3(self):
     result = encrypt("This is a test!", 2)
     self.assertEqual(result, "s eT ashi tist!")