    def test_ansi_terminal_parser_bell(self):
        """
        Check AnsiTerminalParser handles bell.
        """
        parser = AnsiTerminalParser()
        parser.reset("\x07", None)
        tokens = parser.parse()
        with self.assertRaises(StopIteration):
            next(tokens)
Check AnsiTerminalParser handles bell.
tests/test_parsers.py