diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:59:53 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-10-23 16:59:53 +0300 |
commit | 1033cfa3b0255fb23ecd87cc0c4fb4ebb6fedff3 (patch) | |
tree | a7b54193a0fba891205795e380e7e075d50c8f85 | |
parent | 47436e9be5f41898ba873064fb358d0fe2decd06 (diff) | |
download | unit-1033cfa3b0255fb23ecd87cc0c4fb4ebb6fedff3.tar.gz unit-1033cfa3b0255fb23ecd87cc0c4fb4ebb6fedff3.tar.bz2 |
Tests: more static tests.
-rw-r--r-- | test/test_static.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_static.py b/test/test_static.py index 4bdd83ed..f9dcb7dd 100644 --- a/test/test_static.py +++ b/test/test_static.py @@ -40,6 +40,12 @@ class TestStatic(TestApplicationProto): ) 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' ) |