capybara/node/document_matchers.py
def has_no_title(self, title, **kwargs):
        """
        Checks if the page doesn't have the given title.

        Args:
            title (str | RegexObject): The string that the title should include.
            **kwargs: Arbitrary keyword arguments for :class:`TitleQuery`.

        Returns:
            bool: Whether it doesn't match.
        """

        try:
            self.assert_no_title(title, **kwargs)
            return True
        except ExpectationNotMet:
            return False
def has_no_title(self, title, **kwargs):
        """
        Checks if the page doesn't have the given title.

        Args:
            title (str | RegexObject): The string that the title should include.
            **kwargs: Arbitrary keyword arguments for :class:`TitleQuery`.

        Returns:
            bool: Whether it doesn't match.
        """

        try:
            self.assert_no_title(title, **kwargs)
            return True
        except ExpectationNotMet:
            return False
Checks if the page doesn't have the given title.

        Args:
            title (str | RegexObject): The string that the title should include.
            **kwargs: Arbitrary keyword arguments for :class:`TitleQuery`.

        Returns:
            bool: Whether it doesn't match.