def testDecipherStr3(self): self.assertEqual( hw.decipher( 'Ftdqq efmfuefuoumze sa agf tgzfuzs fasqftqd. Mrfqd m ituxq ftqk ebaf m eaxufmdk dmnnuf. Ftq rudef efmfuefuoumz fmwqe muy mzp ahqdetaafe. Ftq eqoazp muye mzp gzpqdetaafe. Ftq ftudp etagfe agf, Iq saf tuy!' ), 'Three statisticians go out hunting together. After a while they spot a solitary rabbit. The first statistician takes aim and overshoots. The second aims and undershoots. The third shouts out, We got him!' )
def testDecipherStr3(self): self.assertEqual( hw.decipher( "Ftdqq efmfuefuoumze sa agf tgzfuzs fasqftqd. Mrfqd m ituxq ftqk ebaf m eaxufmdk dmnnuf. Ftq rudef efmfuefuoumz fmwqe muy mzp ahqdetaafe. Ftq eqoazp muye mzp gzpqdetaafe. Ftq ftudp etagfe agf, Iq saf tuy!" ), "Three statisticians go out hunting together. After a while they spot a solitary rabbit. The first statistician takes aim and overshoots. The second aims and undershoots. The third shouts out, We got him!", )
def testDecipherStr2(self): self.assertEqual( hw.decipher( 'Fs jizhfynts nx bmfy nx qjky fkyjw dtz ktwljy jajwdymnsl dtz qjfwsji.' ), 'An education is what is left after you forget everything you learned.' )
def testDecipherStr4(self): self.assertEqual(hw.decipher("Gurl jbex vg bhg jvgu n crapvy!"), "They work it out with a pencil!")
def testDecipherStr2(self): self.assertEqual( hw.decipher("Fs jizhfynts nx bmfy nx qjky fkyjw dtz ktwljy jajwdymnsl dtz qjfwsji."), "An education is what is left after you forget everything you learned.", )
def testDecipherStr1(self): self.assertEqual(hw.decipher("Bzdrzq bhogdq? H oqdedq Bzdrzq rzkzc."), "Caesar cipher? I prefer Caesar salad.")
def testDecipherEmpty(self): self.assertEqual(hw.decipher(""), "")
def testDecipherStr4(self): self.assertEqual(hw.decipher('Gurl jbex vg bhg jvgu n crapvy!'), 'They work it out with a pencil!')
def testDecipherStr1(self): self.assertEqual(hw.decipher('Bzdrzq bhogdq? H oqdedq Bzdrzq rzkzc.'), 'Caesar cipher? I prefer Caesar salad.')
def testDecipherEmpty(self): self.assertEqual(hw.decipher(''), '')