def assert_text(self, *args, **kwargs):
query = TextQuery(*args, **kwargs)<EOL>@self.synchronize(wait=query.wait)<EOL>def assert_text():<EOL><INDENT>count = query.resolve_for(self)<EOL>if not (matches_count(count, query.options) and<EOL>(count > <NUM_LIT:0> or expects_none(query.options))):<EOL><INDENT>raise ExpectationNotMet(query.failure_message)<EOL><DEDENT>return True<EOL><DEDENT>return assert_text()<EOL>
Asserts that the page or current node has the given text content, ignoring any HTML tags.

Args:
    *args: Variable length argument list for :class:`TextQuery`.
    **kwargs: Arbitrary keyword arguments for :class:`TextQuery`.

Returns:
    True

Raises:
    ExpectationNotMet: If the assertion hasn't succeeded during the wait time.