MCPcopy Index your code
hub / github.com/kubernetes-client/python / test_get

Method test_get

kubernetes/test/test_informer.py:95–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.assertIsNone(self.cache.get_by_key("default/ghost"))
94
95 def test_get(self):
96 pod = _make_pod("kube-system", "coredns")
97 self.cache._put(pod)
98 self.assertIs(self.cache.get(pod), pod)
99
100 def test_thread_safety(self):
101 """Concurrent puts should not raise exceptions."""

Callers

nothing calls this directly

Calls 3

_make_podFunction · 0.85
_putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected