def test_misuseRenderer(self):
        """
        If the L{renderer} decorator  is called without any arguments, it will
        raise a comprehensible exception.
        """
        te = self.assertRaises(TypeError, renderer)
        self.assertEqual(str(te),
                         "expose() takes at least 1 argument (0 given)")

        If the L{renderer} decorator  is called without any arguments, it will
        raise a comprehensible exception.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_template.py