Пример #1
0
def test_break_code_correct_sentence():
    actual = break_code("Oz cgy znk hkyz ul zosky, oz cgy znk cuxyz ul zosky.")
    expected = "It was the best of times, it was the worst of times."
    assert actual == expected
Пример #2
0
def test_break_code_correct_sentence():
    actual = break_code("S vyfo rkwc")
    expected = "I love hams"
    assert actual == expected
Пример #3
0
def test_break_code_correct_word():
    actual = break_code("cat")
    expected = "cat"
    assert actual == expected
Пример #4
0
def test_break_code_correct_word():
    actual = break_code("xghhozy")
    expected = "rabbits"
    assert actual == expected
Пример #5
0
def test_break_code_raise_string_valueerror():
    with pytest.raises(ValueError):
        assert break_code(4)