summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-09-17 21:15:15 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-09-17 21:15:15 +0300
commit23215c839f0b00c288b6556ce405b0e54f4f50ae (patch)
tree0c32cd31d6aee4b9be5197c1cb9e871d4bbcfe30 /test/unit/http.py
parent6352c21a58d66db99f8f981c37e6d57e62fc24a2 (diff)
downloadunit-23215c839f0b00c288b6556ce405b0e54f4f50ae.tar.gz
unit-23215c839f0b00c288b6556ce405b0e54f4f50ae.tar.bz2
Tests: head() method introduced.
Diffstat (limited to '')
-rw-r--r--test/unit/http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/http.py b/test/unit/http.py
index c0af8a9e..01611221 100644
--- a/test/unit/http.py
+++ b/test/unit/http.py
@@ -118,6 +118,9 @@ class TestHTTP(TestUnit):
def get(self, **kwargs):
return self.http('GET', **kwargs)
+ def head(self, **kwargs):
+ return self.http('HEAD', **kwargs)
+
def post(self, **kwargs):
return self.http('POST', **kwargs)