예제 #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')