Started on documentation
[szyfrow.git] / tests / test_keyword_cipher.py
index 595990251b68511f2d88fcfe2ce35789bf2f9317..998ec416489a38f6294d028a8bb1794d676cdeb0 100644 (file)
@@ -38,23 +38,23 @@ def test_decipher_message():
             assert deciphered == plaintext
 
 
-def test_keyword_break():
+def test_keyword_break_single_thread():
     plaintext = 'this is a test message for the keyword breaking routine'
     expected_key = 'elephant'
     expected_wrap = KeywordWrapAlphabet.from_last
     ciphertext = keyword_encipher(plaintext, expected_key, expected_wrap)
-    (key, wrap), score = keyword_break(ciphertext, 
+    (key, wrap), score = keyword_break_single_thread(ciphertext, 
         wordlist=['cat', 'elephant', 'kangaroo'])
     assert key == expected_key
     assert wrap == expected_wrap
     assert score == pytest.approx(Pletters(sanitise(plaintext)))
 
-def test_keyword_break_mp():
+def test_keyword_break():
     plaintext = 'this is a test message for the keyword breaking routine'
     expected_key = 'elephant'
     expected_wrap = KeywordWrapAlphabet.from_last
     ciphertext = keyword_encipher(plaintext, expected_key, expected_wrap)
-    (key, wrap), score = keyword_break_mp(ciphertext, 
+    (key, wrap), score = keyword_break(ciphertext, 
         wordlist=['cat', 'elephant', 'kangaroo'])
     assert key == expected_key
     assert wrap == expected_wrap