tests.test_utils

Classes

MockResponse

dict() -> new empty dictionary

Functions

test_get_nested_value()

test_set_nested_value()

test_delete_nested_value()

test_parse_nested_value()

test_check_expected_values_in_response()

Module Contents

tests.test_utils.test_get_nested_value()[source]
tests.test_utils.test_set_nested_value()[source]
tests.test_utils.test_delete_nested_value()[source]
tests.test_utils.test_parse_nested_value()[source]
class tests.test_utils.MockResponse(my_dict: dict)[source]

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

json() dict[source]
tests.test_utils.test_check_expected_values_in_response()[source]