summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-16 16:07:44 +0200
committerhut <hut@lavabit.com>2010-04-16 16:07:44 +0200
commitbfac461b7954101296fe95f4d2531174a60df5d2 (patch)
tree0841f4a159dd2a7eb204732508e3f77d34cd6296 /test
parenteec96183dcd8c22438ab51898ee1290d198a594a (diff)
downloadranger-bfac461b7954101296fe95f4d2531174a60df5d2.tar.gz
keymap: move translate_keys to ranger.ext.keybinding_parser
Diffstat (limited to 'test')
-rw-r--r--test/tc_newkeys.py5
1 files changed, 3 insertions, 2 deletions
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"