summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tc_newkeys.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py
index cd9430db..aca6ba98 100644
--- a/test/tc_newkeys.py
+++ b/test/tc_newkeys.py
@@ -197,6 +197,12 @@ for char in ascii_lowercase:
 	key_map['c-' + char] = ord(char) - 96
 
 def translate_keys(obj):
+	"""
+	Translate a keybinding to a sequence of integers
+
+	Example:
+	lol<CR>   =>   (108, 111, 108, 10)
+	"""
 	assert isinstance(obj, (tuple, int, str))
 	if isinstance(obj, tuple):
 		for char in obj:
@@ -480,7 +486,7 @@ class Test(PressTestCase):
 			u = Tree()
 			u.set('aaaX', 0)
 			u.set('bbbC', 'Yes')
-			u.set('bbbD', 14)
+			u.set('bbbD', None)
 			u.set('bbbE', 15)
 			u.set('bbbF', 16)
 			u.set('bQ', 22)
@@ -510,7 +516,7 @@ class Test(PressTestCase):
 		self.assertEqual(3, v['aaaZ'])
 		self.assertEqual(11, v['bbbA'])
 		self.assertEqual('Yes', v['bbbC'])
-		self.assertEqual(14, v['bbbD'])
+		self.assertEqual(None, v['bbbD'])
 		self.assertEqual(15, v['bbbE'])
 		self.assertEqual(16, v['bbbF'])
 		self.assertRaises(KeyError, t.__getitem__, 'bbbG')
k/mu/commit/apps/random.subx?h=hlt&id=0bb09d2e14cdf1c1571a8e80ae30460699d00e82'>0bb09d2e ^
33352536 ^


7dac9ade ^
0bb09d2e ^
690fa191 ^
0bb09d2e ^



690fa191 ^
0bb09d2e ^







33352536 ^
0bb09d2e ^



33352536 ^
7dac9ade ^
0bb09d2e ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59