- assert not qn.has_tokens(3, query.TOKEN_PARTIAL)
- assert not qn.has_tokens(2, query.TOKEN_COUNTRY)
- assert qn.has_tokens(2, query.TOKEN_PARTIAL)
- assert qn.has_tokens(2, query.TOKEN_WORD)
-
- assert qn.get_tokens(3, query.TOKEN_PARTIAL) is None
- assert qn.get_tokens(2, query.TOKEN_COUNTRY) is None
- assert len(qn.get_tokens(2, query.TOKEN_PARTIAL)) == 2
- assert len(qn.get_tokens(2, query.TOKEN_WORD)) == 1
+ assert qnode.get_tokens(3, query.TOKEN_PARTIAL) is None
+ assert qnode.get_tokens(2, query.TOKEN_COUNTRY) is None
+ assert len(qnode.get_tokens(2, query.TOKEN_PARTIAL)) == 2
+ assert len(qnode.get_tokens(2, query.TOKEN_WORD)) == 1