def test_encode_decode(self):
     msg = 'tensioniswhoyouthinkyoushouldberelaxationiswhoyouare'
     self.assertEqual(msg, decode(encode(msg)))
Esempio n. 2
0
 def test_encode_decode(self):
     msg = 'tensioniswhoyouthinkyoushouldberelaxationiswhoyouare'
     self.assertEqual(msg, decode(encode(msg)))
 def test_decode(self):
     ciph = 'woree iorhu ssmtp eefei aiafn ildjs ulenf eotse vdoor iecey '\
            'nfima trott tenyu hhytd'
     msg = 'wheneveryoufindyourselfonthesideofthemajorityitistimetopausea'\
           'ndreflect'
     self.assertEqual(msg, decode(ciph))
Esempio n. 4
0
 def test_decode(self):
     ciph = 'woree iorhu ssmtp eefei aiafn ildjs ulenf eotse vdoor iecey '\
            'nfima trott tenyu hhytd'
     msg = 'wheneveryoufindyourselfonthesideofthemajorityitistimetopausea'\
           'ndreflect'
     self.assertEqual(msg, decode(ciph))