    def test_asciinema(self):
        """
        Check that asciinema  player works.
        """
        with AsciinemaPlayer(os.path.join(os.path.dirname(__file__), "test.rec"), max_delay=0.1) as renderer:
            self.assertEqual(renderer.max_height, 18)
            self.assertEqual(renderer.max_width, 134)

            # Check can play the file to the end.
            for _ in range(700):
                a = str(renderer)
            self.assertEqual(a,
                "~/asciimatics/samples $ ls                                                                                                            \n" +
                "256colour.py   colour_globe.gif  fireworks.py    images.py        mapscache     plasma.py       rendering.py  test2.rec               \n" +
                "bars.py        contact_list.py   forms.log       interactive.py   noise.py      player.py       simple.py     tests.py                \n" +
                "basics.py      credits.py        forms.py        julia.py         pacman.png    python.png      tab_demo.py   top.py                  \n" +
                "bg_colours.py  experimental.py   globe.gif       kaleidoscope.py  pacman.py     quick_model.py  terminal.py   treeview.py             \n" +
                "cogs.py        fire.py           grumpy_cat.jpg  maps.py          particles.py  ray_casting.py  test.rec      xmas.py                 \n" +
                "~/asciimatics/samples $                                                                                                               \n" +
                "exit                                                                                                                                  \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      \n" +
                "                                                                                                                                      ")
Check that asciinema  player works.
tests/renderers/test_players.py