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

Method test_replace_all

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

Source from the content-addressed store, hash-verified

78 self.cache._remove(pod) # should not raise
79
80 def test_replace_all(self):
81 pod1 = _make_pod("default", "p1")
82 pod2 = _make_pod("default", "p2")
83 self.cache._put(pod1)
84 self.cache._replace_all([pod2])
85 keys = self.cache.list_keys()
86 self.assertNotIn("default/p1", keys)
87 self.assertIn("default/p2", keys)
88
89 def test_get_by_key(self):
90 pod = _make_pod("default", "p1")

Callers

nothing calls this directly

Calls 4

_make_podFunction · 0.85
_putMethod · 0.80
_replace_allMethod · 0.80
list_keysMethod · 0.80

Tested by

no test coverage detected