Пример #1
0
def test_sort_word_none():
    assert sort_word(None) is None
Пример #2
0
def test_sort_word_bad_input():
    with pytest.raises(TypeError):
        sort_word(1234)
Пример #3
0
def test_sort_word():
    assert 'eimt' == sort_word('time')
    assert '1234' == sort_word('4321')