From bfac461b7954101296fe95f4d2531174a60df5d2 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 16 Apr 2010 16:07:44 +0200 Subject: keymap: move translate_keys to ranger.ext.keybinding_parser --- test/tc_newkeys.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py index c06c2894..06345450 100644 --- a/test/tc_newkeys.py +++ b/test/tc_newkeys.py @@ -19,6 +19,7 @@ from unittest import TestCase, main from ranger.ext.tree import Tree from ranger.container.keymap import * +from ranger.ext.keybinding_parser import parse_keybinding import sys @@ -87,7 +88,7 @@ class Test(PressTestCase): def test(string, *args): if not args: args = (string, ) - self.assertEqual(ordtuple(*args), tuple(translate_keys(string))) + self.assertEqual(ordtuple(*args), tuple(parse_keybinding(string))) def ordtuple(*args): lst = [] @@ -404,7 +405,7 @@ class Test(PressTestCase): self.assertEqual(1, press('xxx')) # corrupt the tree - tup = tuple(translate_keys('xxx')) + tup = tuple(parse_keybinding('xxx')) x = ord('x') km._tree[x][x][x] = "Boo" -- cgit 1.4.1-2-gfad0