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

Method test_combinations

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

Source from the content-addressed store, hash-verified

45 self.assertEqual(parse_keys("\\M-c"), ["\033", "c"])
46
47 def test_combinations(self):
48 self.assertEqual(parse_keys("\\C-a\\n\\<up>"), ["\x01", "\n", "up"])
49 self.assertEqual(parse_keys("\\M-a\\t\\<down>"), ["\033", "a", "\t", "down"])
50
51 def test_keyspec_errors(self):
52 cases = [

Callers

nothing calls this directly

Calls 2

parse_keysFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected