Skip to content

Commit b4f3399

Browse files
committed
Python: Add reverse inheritance test for Tornado
1 parent 57d08a8 commit b4f3399

File tree

1 file changed

+12
-0
lines changed
  • python/ql/test/experimental/library-tests/frameworks/tornado

1 file changed

+12
-0
lines changed

python/ql/test/experimental/library-tests/frameworks/tornado/basic.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,22 @@ def get(self):
2828
self.redirect(url)
2929

3030

31+
class BaseReverseInheritance(tornado.web.RequestHandler):
32+
def get(self):
33+
self.write("hello from BaseReverseInheritance")
34+
35+
36+
class ReverseInheritance(BaseReverseInheritance):
37+
pass
38+
39+
3140
def make_app():
3241
return tornado.web.Application([
3342
(r"/basic", BasicHandler),
3443
(r"/deep", DeepInheritance),
3544
(r"/form", FormHandler),
3645
(r"/redirect", RedirectHandler),
46+
(r"/reverse-inheritance", ReverseInheritance),
3747
])
3848

3949

@@ -52,3 +62,5 @@ def make_app():
5262

5363
# curl -X POST -F "name=foo" http://localhost:8888/form
5464
# curl -v -H 'url: http://example.com' http://localhost:8888/redirect
65+
66+
# http://localhost:8888/reverse-inheritance

0 commit comments

Comments
 (0)