MCPcopy Index your code
hub / github.com/docker/docker-py / _key

Method _key

tests/integration/api_service_test.py:264–265  ·  view source on GitHub ↗
(d, specs=('DiscreteResourceSpec', 'NamedResourceSpec'))

Source from the content-addressed store, hash-verified

262 assert 'GenericResources' in res_reservations
263
264 def _key(d, specs=('DiscreteResourceSpec', 'NamedResourceSpec')):
265 return [d.get(s, {}).get('Kind', '') for s in specs]
266
267 actual = res_reservations['GenericResources']
268 expected = test.get('expected', test['input'])

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected