示例#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)