Tests: more static tests.

This commit is contained in:
Andrey Zelenkov 2019-10-23 16:59:53 +03:00
parent 47436e9be5
commit 1033cfa3b0

View file

@ -39,6 +39,12 @@ class TestStatic(TestApplicationProto):
self.get(url='/index.html')['body'], '0123456789', 'index'
)
self.assertEqual(self.get(url='/')['body'], '0123456789', 'index 2')
self.assertEqual(
self.get(url='/?blah')['body'], '0123456789', 'index vars'
)
self.assertEqual(
self.get(url='/#blah')['body'], '0123456789', 'index anchor'
)
self.assertEqual(
self.get(url='/dir/')['status'], 404, 'index not found'
)