MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / test_add

Method test_add

tests/test_http.py:1295–1298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1293 self.assertEqual("4", id_)
1294
1295 def test_add(self):
1296 batch = BatchHttpRequest()
1297 batch.add(self.request1, request_id="1")
1298 self.assertRaises(KeyError, batch.add, self.request1, request_id="1")
1299
1300 def test_add_fail_for_over_limit(self):
1301 from googleapiclient.http import MAX_BATCH_LIMIT

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
BatchHttpRequestClass · 0.90

Tested by

no test coverage detected