Пример #1
0
 def test_encode_shiftIsOne_returnsWithCharacterShiftedWithOne(self):
     # Arrange
     cipher = AteszCaesarCipher(1)
     # Act
     encoded_text = cipher.encode("a")
     # Assert
     self.assertEqual("b", encoded_text)
Пример #2
0
 def test_encode_shiftIsZero_returnsWithTheGivenText(self):
     cipher = AteszCaesarCipher(0)
     encoded_text = cipher.encode("a")
     self.assertEqual("a", encoded_text)