    def test_class_method_decorator(self, screen=None):
        """
        Check ManagedScreen method decorator works.
        """
        canvas = Canvas(screen, 10, 40, 0, 0)

        # Check underflow and overflow work as expected
        canvas.print_at("ab", -1, 0)
        canvas.print_at("cd", canvas.width - 1, 0)
        self.assert_line_equals(canvas, "b                                      c")
Check ManagedScreen method decorator works.
tests/test_screen.py