def getTermByToken(self, token): key = untokenize(token) return self.getTerm(key)
def test_simple_stream(self): result = untokenize(tokenize("abc")) self.assertEqual(result, "abc")
def test_utf8_stream(self): result = untokenize(tokenize("äöü")) self.assertEqual(result, "äöü")
def test_empty_string(self): result = untokenize(tokenize("")) self.assertEqual(result, "")