def test_sanitize_words(self): wordlist = ["word", "is", "his", "short"] expect = ["short", "word", "his"] reject = [] test = WStext(wordlist, maxlength = 11) good, bad = test.sanitize_words(wordlist, maxlength = 11) assert good == expect assert bad == ["is"]
def test_sanitize_words(self): wordlist = ["word", "is", "his", "short"] expect = ["short", "word", "his"] reject = [] test = WStext(wordlist, maxlength=11) good, bad = test.sanitize_words(wordlist, maxlength=11) assert good == expect assert bad == ["is"]