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