def test_cipher_four():
    assert(cipher("gsrh rh zm vcznkov lu gsv zgyzhs xrksvi") ==
                  "this is an example of the atbash cipher")
def test_cipher_two():
    assert cipher("wizard") == "draziw"
def test_cipher_three():
    assert cipher("/r/dailyprogrammer") == "/i/wzrobkiltiznnvi"
Example #4
0
 def test_wizard(self):
     self.assertEqual('draziw', atbash.cipher('wizard'))
def test_cipher_one():
    assert cipher("foobar") == "ullyzi"
Example #6
0
 def test_sentence(self):
     self.assertEqual(
         'gsrh rh zm vcznkov lu gsv zgyzhs xrksvi',
         atbash.cipher('this is an example of the atbash cipher'))
Example #7
0
 def test_foobar(self):
     self.assertEqual('ullyzi', atbash.cipher('foobar'))
Example #8
0
 def test_dailyprogrammer(self):
     self.assertEqual('/i/wzrobkiltiznnvi',
                      atbash.cipher('/r/dailyprogrammer'))
Example #9
0
def test_cipher_four():
    assert (cipher("gsrh rh zm vcznkov lu gsv zgyzhs xrksvi") ==
            "this is an example of the atbash cipher")
Example #10
0
def test_cipher_three():
    assert cipher("/r/dailyprogrammer") == "/i/wzrobkiltiznnvi"
Example #11
0
def test_cipher_two():
    assert cipher("wizard") == "draziw"
Example #12
0
def test_cipher_one():
    assert cipher("foobar") == "ullyzi"