summaryrefslogtreecommitdiffstats
path: root/tests/unit/common/test_httpClient.py
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2017-01-10 09:11:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-10 09:11:54 +0000
commit9667f5d35df9caf9a3a8f851c2ce3612fa2ba437 (patch)
treee42240c9d2209aa37d54da44a1c89b00ac8cd1cd /tests/unit/common/test_httpClient.py
parentceebb672c85c5dbce6df17f0c263375d17adcc05 (diff)
parent63e75aad3b01de4fc20468d5dd9cdb9b15c5e11e (diff)
Merge "Add API to get the status of async task"
Diffstat (limited to 'tests/unit/common/test_httpClient.py')
-rw-r--r--tests/unit/common/test_httpClient.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/common/test_httpClient.py b/tests/unit/common/test_httpClient.py
index b39dc2332..94ac1c891 100644
--- a/tests/unit/common/test_httpClient.py
+++ b/tests/unit/common/test_httpClient.py
@@ -24,6 +24,12 @@ class HttpClientTestCase(unittest.TestCase):
mock_requests.post.assert_called_with(url, data=json.dumps(data),
headers=headers)
+ @mock.patch('yardstick.common.httpClient.requests')
+ def test_get(self, mock_requests):
+ url = 'http://localhost:5000/hello'
+ httpClient.HttpClient().get(url)
+ mock_requests.get.assert_called_with(url)
+
def main():
unittest.main()