Searched refs:expected_body (Results 1 – 3 of 3) sorted by relevance
/external/python/google-api-python-client/googleapiclient/ |
D | http.py | 1580 expected_body = response[2] 1581 if bool(expected_body) != bool(body): 1584 raise UnexpectedBodyError(expected_body, body) 1585 if isinstance(expected_body, str): 1586 expected_body = json.loads(expected_body) 1588 if body != expected_body: 1589 raise UnexpectedBodyError(expected_body, body)
|
/external/grpc-grpc/test/core/security/ |
D | credentials_test.cc | 629 char* expected_body = nullptr; in validate_refresh_token_http_request() local 632 gpr_asprintf(&expected_body, GRPC_REFRESH_TOKEN_POST_BODY_FORMAT_STRING, in validate_refresh_token_http_request() 636 GPR_ASSERT(strlen(expected_body) == body_size); in validate_refresh_token_http_request() 637 GPR_ASSERT(memcmp(expected_body, body, body_size) == 0); in validate_refresh_token_http_request() 638 gpr_free(expected_body); in validate_refresh_token_http_request()
|
/external/python/cpython3/Lib/test/ |
D | test_httplib.py | 364 expected_body = b"It's just a flesh wound" variable in TransferEncodingTest 374 self.assertEqual(body, self.expected_body) 388 self.assertEqual(body, self.expected_body) 394 'POST', '/', self.expected_body.decode('latin-1'), 400 self.assertEqual(body, self.expected_body) 412 self.assertEqual(self._parse_chunked(body), self.expected_body) 423 self.assertEqual(body, self.expected_body) 441 lines = self.expected_body.split(b' ')
|