    def test_ansi_art(self):
        """
        Check that ansi art player works.
        """
        with AnsiArtPlayer(os.path.join(os.path.dirname(__file__), "test.ans"), height=5, width=20) as renderer:
            self.assertEqual(
                str(renderer),
                "This is a test file \n" +
                "with ansi codes...  \n" +
                "                    \n" +
                "                    \n" +
                "                    ")
            self.assertEqual(
                str(renderer),
                "This is a test file \n" +
                "with ansi codes...  \n" +
                "Check               \n" +
                "here 2nd            \n" +
                "                    ")
            self.assertEqual(
                str(renderer),
                "This is a test file \n" +
                "            abab c  \n" +
                "dheck               \n" +
                "here 2nd            \n" +
                "cbdeefghab          ")
            self.assertEqual(
                str(renderer),
                "                    \n" +
                "                    \n" +
                "                    \n" +
                "123                 \n" +
                "                    ")
Check that ansi art player works.
tests/renderers/test_players.py