Initial import to Tizen
[profile/ivi/python-twisted.git] / twisted / web / demo.py
1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4 """
5 I am a simple test resource.
6 """
7
8 from twisted.web import static
9
10
11 class Test(static.Data):
12     isLeaf = True
13     def __init__(self):
14         static.Data.__init__(
15             self,
16             """
17             <html>
18             <head><title>Twisted Web Demo</title><head>
19             <body>
20             Hello! This is a Twisted Web test page.
21             </body>
22             </html>
23             """,
24             "text/html")