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