diff options
author | hut <hut@lavabit.com> | 2010-01-13 22:52:45 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-13 22:52:45 +0100 |
commit | d8ea8d5fff1c0973a1c361672565b915d81bf774 (patch) | |
tree | 26e948421b8894ebfec919b3998de22b667ee33f /test/tc_commandlist.py | |
parent | bc37a599decaba366327798a4c888d007590eafa (diff) | |
download | ranger-d8ea8d5fff1c0973a1c361672565b915d81bf774.tar.gz |
commandlist: added alias(existing, *new)
Diffstat (limited to 'test/tc_commandlist.py')
-rw-r--r-- | test/tc_commandlist.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tc_commandlist.py b/test/tc_commandlist.py index 86afdc99..5062be9f 100644 --- a/test/tc_commandlist.py +++ b/test/tc_commandlist.py @@ -51,6 +51,14 @@ class Test(TestCase): self.assertEqual(dmy, cl['aaa']) self.assertEqual(fnc, cl['aaaa'].execute) + cl.alias('aaaa', 'c') + cl.rebuild_paths() + self.assertEqual(cl['c'], cl['aaaa']) + cl.unbind('c') + cl.rebuild_paths() + self.assertEqual(fnc, cl['aaaa'].execute) + self.assertKeyError(cl, 'c') + cl.clear() self.assertKeyError(cl, 'a') self.assertKeyError(cl, 'aa') |