diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-24 04:33:42 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-05-24 04:33:42 +0100 |
commit | d6439002371d0bc73183c9d3d28df4f62ce0b972 (patch) | |
tree | 52dae430abdde798589a7aa7944e7c79b69b5fbe /test/test_share_mount.py | |
parent | 539551c89f4028ed70e5881400fc9151af3d12e8 (diff) | |
download | unit-d6439002371d0bc73183c9d3d28df4f62ce0b972.tar.gz unit-d6439002371d0bc73183c9d3d28df4f62ce0b972.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/test_share_mount.py')
-rw-r--r-- | test/test_share_mount.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_share_mount.py b/test/test_share_mount.py index f46e1279..f22fbe75 100644 --- a/test/test_share_mount.py +++ b/test/test_share_mount.py @@ -70,8 +70,8 @@ class TestShareMount(TestApplicationProto): skip_alert(r'opening.*failed') resp = self.get(url='/mount/') - resp['status'] == 200 - resp['body'] == 'mount' + assert resp['status'] == 200 + assert resp['body'] == 'mount' assert 'success' in self.conf( {"share": temp_dir + "/assets/dir", "traverse_mounts": False}, @@ -86,8 +86,8 @@ class TestShareMount(TestApplicationProto): ), 'configure mount enable' resp = self.get(url='/mount/') - resp['status'] == 200 - resp['body'] == 'mount' + assert resp['status'] == 200 + assert resp['body'] == 'mount' def test_share_mount_two_blocks(self, temp_dir, skip_alert): skip_alert(r'opening.*failed') @@ -128,7 +128,7 @@ class TestShareMount(TestApplicationProto): 'routes/0/action', ), 'configure chroot mount default' - self.get(url='/mount/')['status'] == 200, 'chroot' + assert self.get(url='/mount/')['status'] == 200, 'chroot' assert 'success' in self.conf( { @@ -139,4 +139,4 @@ class TestShareMount(TestApplicationProto): 'routes/0/action', ), 'configure chroot mount disable' - self.get(url='/mount/')['status'] == 403, 'chroot mount' + assert self.get(url='/mount/')['status'] == 403, 'chroot mount' |