diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-05 12:36:57 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-05 12:36:57 +0100 |
commit | e0a061955bba69aaf28022d405362c8a5e444ff6 (patch) | |
tree | 5767b5d2e385aab3230b971d915aab6a480e2b28 /test/test_static.py | |
parent | de631d8c36cebdd69018dfa3ff145ba8b701a2d1 (diff) | |
download | unit-e0a061955bba69aaf28022d405362c8a5e444ff6.tar.gz unit-e0a061955bba69aaf28022d405362c8a5e444ff6.tar.bz2 |
Tests: added tests for openat2() features.
Diffstat (limited to 'test/test_static.py')
-rw-r--r-- | test/test_static.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/test_static.py b/test/test_static.py index d8319292..669e265d 100644 --- a/test/test_static.py +++ b/test/test_static.py @@ -168,14 +168,6 @@ class TestStatic(TestApplicationProto): assert self.get(url='/fifo')['status'] == 404, 'fifo' - def test_static_symlink(self, temp_dir): - os.symlink(temp_dir + '/assets/dir', temp_dir + '/assets/link') - - assert self.get(url='/dir')['status'] == 301, 'dir' - assert self.get(url='/dir/file')['status'] == 200, 'file' - assert self.get(url='/link')['status'] == 301, 'symlink dir' - assert self.get(url='/link/file')['status'] == 200, 'symlink file' - def test_static_method(self): resp = self.head() assert resp['status'] == 200, 'HEAD status' |