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"