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_variables.py | |
parent | 0132e552d0b9e8b724015728b5fbd7dad9d2edcb (diff) | |
download | unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.gz unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.bz2 |
Tests: assertion related fixes.
Diffstat (limited to 'test/test_variables.py')
-rw-r--r-- | test/test_variables.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/test_variables.py b/test/test_variables.py index 970ad7b0..f1d66b52 100644 --- a/test/test_variables.py +++ b/test/test_variables.py @@ -354,13 +354,16 @@ Connection: close reg = r'^1$' assert self.search_in_log(reg) is None - self.get( - headers={ - 'Host': 'localhost', - 'Cookie': 'foo_bar=1', - 'Connection': 'close', - }, - )['status'] == 200 + assert ( + self.get( + headers={ + 'Host': 'localhost', + 'Cookie': 'foo_bar=1', + 'Connection': 'close', + }, + )['status'] + == 200 + ) assert self.wait_for_record(reg) is not None check_no_cookie('fOo_bar=0') |