Tests: more static tests.
This commit is contained in:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user