Home
last modified time | relevance | path

Searched refs:expected_body (Results 1 – 3 of 3) sorted by relevance

/external/python/google-api-python-client/googleapiclient/
Dhttp.py1580 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/
Dcredentials_test.cc629 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/
Dtest_httplib.py364 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' ')