Ejemplo n.º 1
0
 def test_shift_letter_full(self):
     self.assertEqual(etao.caesar_shift_letter('A', 26), 'A')
Ejemplo n.º 2
0
 def test_shift_letter_invalid_negative(self):
     with self.assertRaises(ValueError):
         etao.caesar_shift_letter('A', -1)
Ejemplo n.º 3
0
 def test_shift_letter_max(self):
     self.assertEqual(etao.caesar_shift_letter('A', 25), 'Z')
Ejemplo n.º 4
0
 def test_shift_letter_none(self):
     self.assertEqual(etao.caesar_shift_letter('A', 0), 'A')
Ejemplo n.º 5
0
 def test_shift_letter_negative(self):
     self.assertEqual(etao.caesar_shift_letter('A', -1), 'Z')
Ejemplo n.º 6
0
 def test_shift_letter_min(self):
     self.assertEqual(etao.caesar_shift_letter('A', 1), 'B')
Ejemplo n.º 7
0
 def test_shift_letter_invalid_negative(self):
     with self.assertRaises(ValueError):
         etao.caesar_shift_letter('A', -1)
Ejemplo n.º 8
0
 def test_shift_letter_full(self):
     self.assertEqual(etao.caesar_shift_letter('A', 26), 'A')
Ejemplo n.º 9
0
 def test_shift_letter_none(self):
     self.assertEqual(etao.caesar_shift_letter('A', 0), 'A')
Ejemplo n.º 10
0
 def test_shift_letter_max(self):
     self.assertEqual(etao.caesar_shift_letter('A', 25), 'Z')
Ejemplo n.º 11
0
 def test_shift_letter_min(self):
     self.assertEqual(etao.caesar_shift_letter('A', 1), 'B')