16 строки
373 B
Python
16 строки
373 B
Python
# Copyright (c) Microsoft Corporation
|
|
# Licensed under the MIT License.
|
|
|
|
import pytest
|
|
|
|
from raiutils.webservice import post_with_retries
|
|
|
|
|
|
class TestPost(object):
|
|
|
|
def test_post_bad_uri(self):
|
|
uri = 'https://bad_uri'
|
|
input_data = {}
|
|
with pytest.raises(RuntimeError):
|
|
post_with_retries(uri, input_data, max_retries=2, retry_delay=1)
|