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"))
예제 #6
0
 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")
예제 #8
0
 def test_encode_O_M_G(self):
     self.assertMultiLineEqual(encode("O M G"), "lnt")
예제 #9
0
 def test_encode_long_word(self):
     self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
예제 #10
0
 def test_encode_no(self):
     self.assertEqual("ml", encode("no"))
예제 #11
0
 def test_encode_yes(self):
     self.assertEqual("bvh", encode("yes"))
예제 #12
0
 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))
예제 #13
0
 def test_encode_sentence(self):
     self.assertEqual("gifgs rhurx grlm", encode("Truth is fiction."))
예제 #14
0
 def test_encode_long_word(self):
     self.assertEqual("nrmwy oldrm tob", encode("mindblowingly"))
예제 #15
0
 def test_encode_long_word(self):
     self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
예제 #16
0
 def test_encode_numbers(self):
     self.assertMultiLineEqual(
         encode("Testing, 1 2 3, testing."), "gvhgr mt123 gvhgr mt")
예제 #17
0
 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)
예제 #18
0
 def test_encode_sentence(self):
     self.assertMultiLineEqual(
         encode("Truth is fiction."), "gifgs rhurx grlm")
 def test_encode_no(self):
     self.assertEqual(encode("no"), "ml")
예제 #20
0
 def test_encode_decode(self):
     self.assertMultiLineEqual(
         decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
 def test_encode_numbers(self):
     self.assertEqual(encode("Testing,1 2 3, testing."),
                      "gvhgr mt123 gvhgr mt")
예제 #22
0
 def test_encode_OMG(self):
     self.assertMultiLineEqual("lnt", encode("OMG"))
예제 #23
0
 def test_encode_O_M_G(self):
     self.assertEqual("lnt", encode("O M G"))
예제 #24
0
 def test_encode_numbers(self):
     self.assertMultiLineEqual("gvhgr mt123 gvhgr mt",
                               encode("Testing, 1 2 3, testing."))
 def test_encode_yes(self):
     self.assertEqual("bvh", encode("yes"))
 def test_encode_omg(self):
     assert encode("OMG") == "lnt"
 def test_encode_long_word(self):
     self.assertEqual("nrmwy oldrm tob", encode("mindblowingly"))
 def test_encode_spaces(self):
     assert encode("O M G") == "lnt"
 def test_encode_sentence(self):
     self.assertEqual("gifgs rhurx grlm",
                      encode("Truth is fiction."))
 def test_encode_mindblowingly(self):
     assert encode("mindblowingly") == "nrmwy oldrm tob"
예제 #31
0
 def test_encode_O_M_G(self):
     self.assertMultiLineEqual(encode("O M G"), "lnt")
 def test_encode_numbers(self):
     assert encode("Testing,1 2 3, testing.") == "gvhgr mt123 gvhgr mt"
예제 #33
0
 def test_encode_sentence(self):
     self.assertMultiLineEqual(
         encode("Truth is fiction."), "gifgs rhurx grlm")
 def test_encode_deep_thought(self):
     assert encode("Truth is fiction.") == "gifgs rhurx grlm"
예제 #35
0
 def test_encode_no(self):
     self.assertMultiLineEqual(encode("no"), "ml")
 def test_encode_yes(self):
     assert encode("yes") == "bvh"
예제 #37
0
 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_OMG(self):
     self.assertMultiLineEqual("lnt", encode("OMG"))
 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")
예제 #46
0
 def test_encode_omg(self):
     self.assertMultiLineEqual("lnt", encode("omg"))