summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-11-15 00:42:12 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2022-11-15 00:42:12 +0000
commit2c2156e236c18a67922617a4e43fb9eb1da0ab9e (patch)
tree32f015b1dc7927babe3e534bd91694471739880d /test
parent0d3b31e6710afe4348eb25f1602f5271c92b9a77 (diff)
downloadunit-2c2156e236c18a67922617a4e43fb9eb1da0ab9e.tar.gz
unit-2c2156e236c18a67922617a4e43fb9eb1da0ab9e.tar.bz2
Tests: fixed assertion in test_variables_dynamic.
Diffstat (limited to 'test')
-rw-r--r--test/test_variables.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/test_variables.py b/test/test_variables.py
index ebbc5aa2..80236f65 100644
--- a/test/test_variables.py
+++ b/test/test_variables.py
@@ -261,10 +261,13 @@ Connection: close
def test_variables_dynamic(self):
self.set_format('$header_foo$cookie_foo$arg_foo')
- self.get(
- url='/?foo=h',
- headers={'Foo': 'b', 'Cookie': 'foo=la', 'Connection': 'close'},
- )['status'] = 200
+ assert (
+ self.get(
+ url='/?foo=h',
+ headers={'Foo': 'b', 'Cookie': 'foo=la', 'Connection': 'close'},
+ )['status']
+ == 200
+ )
assert self.wait_for_record(r'^blah$') is not None
def test_variables_dynamic_arguments(self):