def test_convert_query_params( api: api_methods.APIMethods, test_query_params: api_methods.TQueryParams, expected: MutableMapping[str, str], ): actual = api._convert_query_params(test_query_params) assert actual == expected
def test_return( api: api_methods.APIMethods, test_response: transport.Response, test_structure: api_methods.TStructure, expected: api_methods.TReturn, ): actual = api._return(test_response, test_structure) assert actual == expected
def test_get_serialized( api: api_methods.APIMethods, test_body: api_methods.TBody, expected: Optional[bytes] ): actual = api._get_serialized(test_body) assert actual == expected
def test_api_versioned_url_is_built_properly( api: api_methods.APIMethods, method_path: str, expected_url: str ): assert api._path(method_path) == expected_url