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"))
Ejemplo n.º 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")
Ejemplo n.º 8
0
 def test_encode_O_M_G(self):
     self.assertMultiLineEqual(encode("O M G"), "lnt")
Ejemplo n.º 9
0
 def test_encode_long_word(self):
     self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
Ejemplo n.º 10
0
 def test_encode_no(self):
     self.assertEqual("ml", encode("no"))
Ejemplo n.º 11
0
 def test_encode_yes(self):
     self.assertEqual("bvh", encode("yes"))
Ejemplo n.º 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))
Ejemplo n.º 13
0
 def test_encode_sentence(self):
     self.assertEqual("gifgs rhurx grlm", encode("Truth is fiction."))
Ejemplo n.º 14
0
 def test_encode_long_word(self):
     self.assertEqual("nrmwy oldrm tob", encode("mindblowingly"))
Ejemplo n.º 15
0
 def test_encode_long_word(self):
     self.assertMultiLineEqual(encode("mindblowingly"), "nrmwy oldrm tob")
Ejemplo n.º 16
0
 def test_encode_numbers(self):
     self.assertMultiLineEqual(
         encode("Testing, 1 2 3, testing."), "gvhgr mt123 gvhgr mt")
Ejemplo n.º 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)
Ejemplo n.º 18
0
 def test_encode_sentence(self):
     self.assertMultiLineEqual(
         encode("Truth is fiction."), "gifgs rhurx grlm")
Ejemplo n.º 19
0
 def test_encode_no(self):
     self.assertEqual(encode("no"), "ml")
Ejemplo n.º 20
0
 def test_encode_decode(self):
     self.assertMultiLineEqual(
         decode(encode("Testing, 1 2 3, testing.")), "testing123testing")
Ejemplo n.º 21
0
 def test_encode_numbers(self):
     self.assertEqual(encode("Testing,1 2 3, testing."),
                      "gvhgr mt123 gvhgr mt")
Ejemplo n.º 22
0
 def test_encode_OMG(self):
     self.assertMultiLineEqual("lnt", encode("OMG"))
Ejemplo n.º 23
0
 def test_encode_O_M_G(self):
     self.assertEqual("lnt", encode("O M G"))
Ejemplo n.º 24
0
 def test_encode_numbers(self):
     self.assertMultiLineEqual("gvhgr mt123 gvhgr mt",
                               encode("Testing, 1 2 3, testing."))
Ejemplo n.º 25
0
 def test_encode_yes(self):
     self.assertEqual("bvh", encode("yes"))
 def test_encode_omg(self):
     assert encode("OMG") == "lnt"
Ejemplo n.º 27
0
 def test_encode_long_word(self):
     self.assertEqual("nrmwy oldrm tob", encode("mindblowingly"))
 def test_encode_spaces(self):
     assert encode("O M G") == "lnt"
Ejemplo n.º 29
0
 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"
Ejemplo n.º 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"
Ejemplo n.º 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"
Ejemplo n.º 35
0
 def test_encode_no(self):
     self.assertMultiLineEqual(encode("no"), "ml")
 def test_encode_yes(self):
     assert encode("yes") == "bvh"
Ejemplo n.º 37
0
 def test_encode_yes(self):
     self.assertMultiLineEqual(encode("yes"), "bvh")
 def test_encode_no(self):
     assert encode("no") == "ml"
Ejemplo n.º 39
0
 def test_encode_omg(self):
     self.assertEqual(encode("OMG"), "lnt")
 def test_encode_yes(self):
     self.assertMultiLineEqual("bvh", encode("yes"))
Ejemplo n.º 41
0
 def test_encode_mindblowingly(self):
     self.assertEqual(encode("mindblowingly"), "nrmwy oldrm tob")
 def test_encode_OMG(self):
     self.assertMultiLineEqual("lnt", encode("OMG"))
Ejemplo n.º 43
0
 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"))
Ejemplo n.º 45
0
 def test_encode_yes(self):
     self.assertEqual(encode("yes"), "bvh")
Ejemplo n.º 46
0
 def test_encode_omg(self):
     self.assertMultiLineEqual("lnt", encode("omg"))