def test_sort_word_none(): assert sort_word(None) is None
def test_sort_word_bad_input(): with pytest.raises(TypeError): sort_word(1234)
def test_sort_word(): assert 'eimt' == sort_word('time') assert '1234' == sort_word('4321')