예제 #1
0
 def test_caesar_lowercase(self):
     before = 'abcdefghijklmnopqrstuvwxyz'
     expected = 'bcdefghijklmnopqrstuvwxyza'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #2
0
 def test_caesar_nonletter(self):
     before = '12345'
     expected = '12345'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #3
0
 def test_caesar_empty(self):
     before = ''
     expected = ''
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #4
0
 def test_caesar_uppercase(self):
     before = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected = 'BCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #5
0
 def test_caesar_mixedcase(self):
     before = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected = 'bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #6
0
 def test_caesar_lowercase(self):
     before = 'abcdefghijklmnopqrstuvwxyz'
     expected =  'bcdefghijklmnopqrstuvwxyza'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #7
0
 def test_caesar_empty(self):
     before = ''
     expected =  ''
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #8
0
 def test_caesar_nonletter(self):
     before = '12345'
     expected =  '12345'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #9
0
 def test_caesar_mixedcase(self):
     before = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected =  'bcdefghijklmnopqrstuvwxyzaBCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)
예제 #10
0
 def test_caesar_uppercase(self):
     before = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     expected =  'BCDEFGHIJKLMNOPQRSTUVWXYZA'
     actual = text.caesar(before)
     self.assertEqual(actual, expected)