From 13ecffe7ffa5c80cd69d55419f230c97d06ab23e Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 18 Feb 2010 20:47:46 +0100 Subject: integrating keyparser... --- test/tc_newkeys.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/tc_newkeys.py b/test/tc_newkeys.py index 8f5422a0..0922029e 100644 --- a/test/tc_newkeys.py +++ b/test/tc_newkeys.py @@ -380,10 +380,22 @@ class Test(PressTestCase): return arg.direction.down directions.add('j', dir=Direction(down=1)) + directions.add('s', alias='j') directions.add('k', dir=Direction(down=-1)) km.add('', func=move) self.assertEqual(1, press('j')) + self.assertEqual(1, press('j')) + self.assertEqual(1, press('j')) + self.assertEqual(1, press('j')) + self.assertEqual(1, press('j')) + self.assertEqual(1, press('s')) + self.assertEqual(1, press('s')) + self.assertEqual(1, press('s')) + self.assertEqual(1, press('s')) + self.assertEqual(1, press('s')) + self.assertEqual(-1, press('k')) + self.assertEqual(-1, press('k')) self.assertEqual(-1, press('k')) km.add('k', func=lambda _: 'love') -- cgit 1.4.1-2-gfad0