MCPcopy Create free account
hub / github.com/bpython/bpython / test_mock_kwlist

Method test_mock_kwlist

bpython/test/test_autocomplete.py:421–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

419 self.assertIsInstance(m, str)
420
421 def test_mock_kwlist(self):
422 with mock.patch.object(keyword, "kwlist", new=["abcd"]):
423 self.assertEqual(self.com.matches(3, "abc", locals_={}), None)
424
425 def test_mock_kwlist_non_ascii(self):
426 with mock.patch.object(keyword, "kwlist", new=["abcß"]):

Callers

nothing calls this directly

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected