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.assertEqual(ciphertext, encode(plaintext))
def test_encode_O_M_G(self): self.assertEqual("lnt", encode("O M G"))
def test_encode_numbers(self): self.assertEqual("gvhgr mt123 gvhgr mt", encode("Testing, 1 2 3, testing."))
def test_encode_all_the_letters(self): self.assertEqual( encode("The quick brown fox jumps over the lazy dog."), "gsvjf rxpyi ldmul cqfnk hlevi gsvoz abwlt", )
def test_encode_no(self): self.assertEqual("ml", encode("no"))
def test_encode_decode(self): self.assertMultiLineEqual( decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
def test_encode_spaces(self): self.assertEqual(encode("O M G"), "lnt")
def test_encode_O_M_G(self): self.assertMultiLineEqual(encode("O M G"), "lnt")
def test_encode_long_word(self): self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
def test_encode_yes(self): self.assertEqual("bvh", encode("yes"))
def test_encode_sentence(self): self.assertEqual("gifgs rhurx grlm", encode("Truth is fiction."))
def test_encode_long_word(self): self.assertEqual("nrmwy oldrm tob", encode("mindblowingly"))
def test_encode_numbers(self): self.assertMultiLineEqual( encode("Testing, 1 2 3, testing."), "gvhgr mt123 gvhgr mt")
def test_encode_all_text(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_sentence(self): self.assertMultiLineEqual( encode("Truth is fiction."), "gifgs rhurx grlm")
def test_encode_no(self): self.assertEqual(encode("no"), "ml")
def test_encode_numbers(self): self.assertEqual(encode("Testing,1 2 3, testing."), "gvhgr mt123 gvhgr mt")
def test_encode_OMG(self): self.assertMultiLineEqual("lnt", encode("OMG"))
def test_encode_numbers(self): self.assertMultiLineEqual("gvhgr mt123 gvhgr mt", encode("Testing, 1 2 3, testing."))
def test_encode_omg(self): assert encode("OMG") == "lnt"
def test_encode_spaces(self): assert encode("O M G") == "lnt"
def test_encode_mindblowingly(self): assert encode("mindblowingly") == "nrmwy oldrm tob"
def test_encode_numbers(self): assert encode("Testing,1 2 3, testing.") == "gvhgr mt123 gvhgr mt"
def test_encode_deep_thought(self): assert encode("Truth is fiction.") == "gifgs rhurx grlm"
def test_encode_no(self): self.assertMultiLineEqual(encode("no"), "ml")
def test_encode_yes(self): assert encode("yes") == "bvh"
def test_encode_yes(self): self.assertMultiLineEqual(encode("yes"), "bvh")
def test_encode_no(self): assert encode("no") == "ml"
def test_encode_omg(self): self.assertEqual(encode("OMG"), "lnt")
def test_encode_yes(self): self.assertMultiLineEqual("bvh", encode("yes"))
def test_encode_mindblowingly(self): self.assertEqual(encode("mindblowingly"), "nrmwy oldrm tob")
def test_encode_deep_thought(self): self.assertEqual(encode("Truth is fiction."), "gifgs rhurx grlm")
def test_encode_no(self): self.assertMultiLineEqual("ml", encode("no"))
def test_encode_yes(self): self.assertEqual(encode("yes"), "bvh")
def test_encode_omg(self): self.assertMultiLineEqual("lnt", encode("omg"))