MCPcopy Index your code
hub / github.com/python/cpython / test_insert

Method test_insert

Lib/test/test_pyrepl/test_eventqueue.py:47–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self.assertEqual(eq.buf, bytearray())
46
47 def test_insert(self):
48 eq = self.make_eventqueue()
49 event = Event("key", "a", b"a")
50 eq.insert(event)
51 self.assertEqual(eq.events[0], event)
52
53 @patch("_pyrepl.base_eventqueue.keymap")
54 def test_push_with_key_in_keymap(self, mock_keymap):

Callers

nothing calls this directly

Calls 4

make_eventqueueMethod · 0.95
EventClass · 0.90
insertMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected