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

Method test_oc_no_list

Lib/idlelib/idle_test/test_autocomplete.py:169–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 none(acp._delayed_completion_id)
168
169 def test_oc_no_list(self):
170 acp = self.autocomplete
171 fetch = Func(result=([],[]))
172 acp.fetch_completions = fetch
173 self.text.insert('1.0', 'object')
174 self.assertIsNone(acp.open_completions(ac.TAB))
175 self.text.insert('insert', '.')
176 self.assertIsNone(acp.open_completions(ac.TAB))
177 self.assertEqual(fetch.called, 2)
178
179
180 def test_open_completions_none(self):

Callers

nothing calls this directly

Calls 5

FuncClass · 0.90
assertIsNoneMethod · 0.80
open_completionsMethod · 0.80
insertMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected