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

Method test_remove

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

Source from the content-addressed store, hash-verified

68 self.assertIn(pod, self.cache.list())
69
70 def test_remove(self):
71 pod = _make_pod("default", "p1")
72 self.cache._put(pod)
73 self.cache._remove(pod)
74 self.assertEqual(self.cache.list(), [])
75
76 def test_remove_nonexistent_is_noop(self):
77 pod = _make_pod("default", "missing")

Callers

nothing calls this directly

Calls 4

_make_podFunction · 0.85
_putMethod · 0.80
_removeMethod · 0.80
listMethod · 0.80

Tested by

no test coverage detected