def test_caesar_encode1(self): self.assertEqual(Caesar().encode('itisawesomeprogramminginpython'), 'lwlvdzhvrphsurjudpplqjlqsbwkrq')
def test_caesar_decode(self): self.assertEqual(Caesar().decode('yhqlylglylfl'), 'venividivici')
def test_caesar_encode_with_numbers(self): self.assertEqual(Caesar().encode('1, 2, 3, Go!'), 'jr')
def test_caesar_encode3(self): self.assertEqual(Caesar().encode('\'Twas the night before Christmas'), 'wzdvwkhqljkwehiruhfkulvwpdv')
def test_caesar_encode2(self): self.assertEqual(Caesar().encode('venividivici'), 'yhqlylglylfl')
def test_caesar_combo(self): text = 'venividivici' caesar = Caesar() cipher = caesar.encode(text) self.assertEqual(cipher, 'yhqlylglylfl') self.assertEqual(caesar.decode(cipher), text)