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

Method test_meta_sequences

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

Source from the content-addressed store, hash-verified

40 self.assertEqual(parse_keys(test_key), expected_keys)
41
42 def test_meta_sequences(self):
43 self.assertEqual(parse_keys("\\M-a"), ["\033", "a"])
44 self.assertEqual(parse_keys("\\M-b"), ["\033", "b"])
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"])

Callers

nothing calls this directly

Calls 2

parse_keysFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected