def test_example(self):
        app = Klein()

        @app.route("/", methods=["GET"])
        @user_documentation(
            u"""
            Demonstrates examples.
            """, examples=[u"example-example"],
            header=u"Header",
            section=u'section')
        def hasExamples():
            pass

        examples = {
            u"example-example": {
                u"id": u"example-example",
                u"doc": u"This example demonstrates examples.",
                u"request":
                    u"GET /prefix/ HTTP/1.1\n"
                    u"\n",
                u"response":
                    u"HTTP/1.1 200 OK\n"
                    u"\n"
                    u'"%(DOMAIN)s"\n',
                },
            }

        rest = list(makeRst(b"/prefix", 'section', app, examples.get, {}))
        self.assertEqual(
            [u'Header',
             u'------',
             u'',
             u'',
             # This line introduces the endpoint
             '.. http:get:: /prefix/',
             '',
             # Here is the prose documentation for the endpoint.
             '   Demonstrates examples.',
             '   ',
             '   **Example:** This example demonstrates examples.',
             '   ',
             # This is a header introducing the request portion of the session.
             '   Request',
             # This blank line is necessary to satisfy reST for some reason.
             '   ',
             '   .. sourcecode:: http',
             '   ',
             # Here's the bytes of the HTTP request.
             '      GET /prefix/ HTTP/1.1',
             '      Host: api.example.com',
             '      Content-Type: application/json',
             '      ',
             # This blank line is necessary to satisfy reST for some reason.
             '   ',
             # The same again but for the HTTP response.
             '   Response',
             '   ',
             '   .. sourcecode:: http',
             '   ',
             '      HTTP/1.1 200 OK',
             '      Content-Type: application/json',
             '      ',
             '      "example.com"',
             '   ',
             '',
             ], rest)
:param interval: the delay or interval to wait for until
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/docs/test/test_publicapi.py/MakeRstTests.test_example--crossover with--dataset/ETHPy150Open circuits/circuits/circuits/core/timers.py/Timer.__init__