def test_encode_no(self): self.assertMultiLineEqual(encode("no"), "ml")
def test_encode_all_things(self): plaintext = "The quick brown fox jumps over the lazy dog." ciphertext = "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt" self.assertMultiLineEqual(encode(plaintext), ciphertext)
def test_encode_decode(self): self.assertMultiLineEqual(decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
def test_encode_sentence(self): self.assertMultiLineEqual(encode("Truth is fiction."), "gifgs rhurx grlm")
def test_encode_numbers(self): self.assertMultiLineEqual(encode("Testing, 1 2 3, testing."), "gvhgr mt123 gvhgr mt")
def test_encode_long_word(self): self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
def test_encode_O_M_G(self): self.assertMultiLineEqual(encode("O M G"), "lnt")
def test_encode_yes(self): self.assertMultiLineEqual(encode("yes"), "bvh")