diff options
author | hut <hut@lavabit.com> | 2010-02-18 20:47:46 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-09 14:40:22 +0100 |
commit | 13ecffe7ffa5c80cd69d55419f230c97d06ab23e (patch) | |
tree | 1a86818456c077330ea1f949fbdd05ac023c4d32 /test | |
parent | 6710b7e18c7a74477375f4425fa4ca1bd2ab0927 (diff) | |
download | ranger-13ecffe7ffa5c80cd69d55419f230c97d06ab23e.tar.gz |
integrating keyparser...
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_newkeys.py | 12 |
1 files changed, 12 insertions, 0 deletions
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('<dir>', 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') |