diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 16:56:14 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 16:56:14 +0100 |
commit | b034bf67034c4f0e966ebd207ba2f407f6f15fa8 (patch) | |
tree | ed2f338b2283b2b4d4ec562ab7e251268ac3f0fa /test/test_go_isolation.py | |
parent | 0132e552d0b9e8b724015728b5fbd7dad9d2edcb (diff) | |
download | unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.gz unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.bz2 |
Tests: assertion related fixes.
Diffstat (limited to 'test/test_go_isolation.py')
-rw-r--r-- | test/test_go_isolation.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_go_isolation.py b/test/test_go_isolation.py index 2f631692..8216a6fe 100644 --- a/test/test_go_isolation.py +++ b/test/test_go_isolation.py @@ -289,10 +289,10 @@ class TestGoIsolation(TestApplicationGo): obj = self.getjson(url='/?file=/go/app')['body'] - assert obj['FileExists'] == True, 'app relative to rootfs' + assert obj['FileExists'], 'app relative to rootfs' obj = self.getjson(url='/?file=/bin/sh')['body'] - assert obj['FileExists'] == False, 'file should not exists' + assert not obj['FileExists'], 'file should not exists' def test_go_isolation_rootfs_container_priv(self, is_su, temp_dir): if not is_su: @@ -310,10 +310,10 @@ class TestGoIsolation(TestApplicationGo): obj = self.getjson(url='/?file=/go/app')['body'] - assert obj['FileExists'] == True, 'app relative to rootfs' + assert obj['FileExists'], 'app relative to rootfs' obj = self.getjson(url='/?file=/bin/sh')['body'] - assert obj['FileExists'] == False, 'file should not exists' + assert not obj['FileExists'], 'file should not exists' def test_go_isolation_rootfs_automount_tmpfs(self, is_su, temp_dir): try: |