コード例 #1
0
ファイル: caesar_test.py プロジェクト: udhayprakash/libcipher
 def test_encrypt_special_character(self):
     encrypted = encrypt("Hello World!", 2)
     self.assertEquals(encrypted, "jgnnq yqtnf!")
コード例 #2
0
ファイル: caesar_test.py プロジェクト: udhayprakash/libcipher
 def test_encrypt_empty(self):
     encrypted = encrypt("", 1)
     self.assertEqual(encrypted, "")
コード例 #3
0
ファイル: caesar_test.py プロジェクト: udhayprakash/libcipher
 def test_encrypt_with_key(self):
     encrypted = encrypt("Hello World", 2)
     self.assertEquals(encrypted, "jgnnq yqtnf")