summary refs log tree commit diff stats
path: root/test/tc_newkeys.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-12 20:33:01 +0100
committerhut <hut@lavabit.com>2010-03-09 14:40:20 +0100
commit705eabe249d07dd569ea4c5b6af134a718a65db0 (patch)
tree337f33e1bf5aca1909f862897dfcfaa687574d3d /test/tc_newkeys.py
parentd6429e27ffb57df0240572588704969afd492b3c (diff)
downloadranger-705eabe249d07dd569ea4c5b6af134a718a65db0.tar.gz
keyparser: minor changes
Diffstat (limited to 'test/tc_newkeys.py')
-rw-r--r--test/tc_newkeys.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py
index d5c4e18f..d29450d9 100644
--- a/test/tc_newkeys.py
+++ b/test/tc_newkeys.py
@@ -273,7 +273,7 @@ class Tree(object):
 			last_tree = tree
 			tree = newtree
 		if isinstance(tree, dict):
-			return Tree(tree, parent=last_tree, key=char)
+			return type(self)(tree, parent=last_tree, key=char)
 		else:
 			return tree
 
@@ -291,7 +291,7 @@ class Tree(object):
 			except KeyError:
 				raise KeyError(str(char) + " not in tree " + str(tree))
 		if isinstance(tree, dict):
-			return Tree(tree, parent=last_tree, key=char)
+			return type(self)(tree, parent=last_tree, key=char)
 		else:
 			return tree
 
@@ -342,7 +342,6 @@ class Binding(object):
 		except KeyError:
 			self.direction = None
 
-
 class PressTestCase(TestCase):
 	"""Some useful methods for the actual test"""
 	def _mkpress(self, keybuffer, keymap):
@@ -398,6 +397,9 @@ class Test(PressTestCase):
 		test('<')
 		test('>')
 		test('<C-a>', 1)
+		test('<C-b>', 2)
+		for i in range(1, 26):
+			test('<C-' + chr(i+ord('a')-1) + '>', i)
 		test('k<a')
 		test('k<anz>')
 		test('k<a<nz>')