예제 #1
0
 def test_vigenere_longer_msg(self):
     self.assertEquals('cdefg', vigenere_cipher('abcde', 'c'))
예제 #2
0
 def test_vigenere_same_str_sizes(self):
     self.assertEquals('abc', vigenere_cipher('abc', 'aaa'))
     self.assertEquals('ace', vigenere_cipher('abc', 'abc'))
     self.assertEquals('bcd', vigenere_cipher('abc', 'bbb'))
     self.assertEquals('cde', vigenere_cipher('abc', 'ccc'))
예제 #3
0
 def test_vigenere_empty(self):
     self.assertEquals('', vigenere_cipher('', ''))
예제 #4
0
 def test_vigenere_longer_msg(self):
     self.assertEquals('cdefg', vigenere_cipher('abcde', 'c'))
예제 #5
0
 def test_vigenere_same_str_sizes(self):
     self.assertEquals('abc', vigenere_cipher('abc', 'aaa'))
     self.assertEquals('ace', vigenere_cipher('abc', 'abc'))
     self.assertEquals('bcd', vigenere_cipher('abc', 'bbb'))
     self.assertEquals('cde', vigenere_cipher('abc', 'ccc'))
예제 #6
0
 def test_vigenere_empty(self):
     self.assertEquals('', vigenere_cipher('', ''))