aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/web/demo.py
blob: b8475f020a971457aecca4d540738212e295b523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
I am a simple test resource.
"""

from twisted.web import static


class Test(static.Data):
    isLeaf = True
    def __init__(self):
        static.Data.__init__(
            self,
            """
            <html>
            <head><title>Twisted Web Demo</title><head>
            <body>
            Hello! This is a Twisted Web test page.
            </body>
            </html>
            """,
            "text/html")