    def test_ansi_terminal_parser_def_colours(self):
        """
        Check AnsiTerminalParser default colours work as expected.
        """
        parser = AnsiTerminalParser()
        parser.reset("a\x1B[39mb\x1B[49mc", None)
        tokens = parser.parse()

        # Normal text
        self.assertEqual(next(tokens), (0, Parser.DISPLAY_TEXT, "a"))

        # Default foreground colour
        self.assertEqual(next(tokens), (1, Parser.CHANGE_COLOURS, (constants.COLOUR_DEFAULT, None, None)))
        self.assertEqual(next(tokens), (1, Parser.DISPLAY_TEXT, "b"))

        # Default background colour
        self.assertEqual(next(tokens), (7, Parser.CHANGE_COLOURS, (constants.COLOUR_DEFAULT, None, constants.COLOUR_DEFAULT)))
        self.assertEqual(next(tokens), (7, Parser.DISPLAY_TEXT, "c"))
Check AnsiTerminalParser default colours work as expected.
tests/test_parsers.py